| ๐ก |
bioimageio format validation |
| status |
valid-format |
| source |
https://hypha.aicell.io/bioimage-io/artifacts/noisy-ox/files/rdf.yaml?version=v0 |
| id |
noisy-ox |
| version |
1 |
| applied format |
model 0.5.10 |
| bioimageio.spec |
0.5.10.2 |
|
Location |
Details |
| โ๏ธ |
|
Successfully created `ModelDescr` instance. |
| โ๏ธ |
|
bioimageio.spec format validation model 0.5.10 |
| โ |
inputs.0.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
inputs.1.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
inputs.2.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
inputs.3.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
inputs.4.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
inputs.5.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
outputs.0.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
outputs.1.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
outputs.2.sample_tensor |
Needs to be filled for FAIR compliance |
| โ๏ธ |
weights.pytorch_state_dict |
Found existing conda environment '08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5' |
| โ |
weights.pytorch_state_dict |
Reproduce test outputs from test inputs (pytorch_state_dict) |
| โ |
weights.pytorch_state_dict |
PredictorAdaptor.load_state_dict() got an unexpected keyword argument 'strict' |
|
|
See Traceback 1. |
|
weights.pytorch_state_dict |
recommended conda environment (Reproduce test outputs from test inputs (pytorch_state_dict)) |
|
|
%YAML 1.2
---
name: sam
channels:
- pytorch
- conda-forge
- nodefaults
dependencies:
- conda-forge::bioimageio.core>=0.9.4
- pip
- segment-anything
|
|
weights.pytorch_state_dict |
conda compare (Reproduce test outputs from test inputs (pytorch_state_dict)) |
|
|
Success. All the packages in the specification file are present in the environment with matching
version and build string. |
| โ |
weights.pytorch_state_dict |
Run pytorch_state_dict inference for parametrized inputs |
| โ |
weights.pytorch_state_dict |
PredictorAdaptor.load_state_dict() got an unexpected keyword argument 'strict' |
|
|
See Traceback 2. |
Traceback 1
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 877 โ โ test_input = get_test_input_sample(model) โ
โ 878 โ โ expected = get_test_output_sample(model) โ
โ 879 โ โ โ
โ โฑ 880 โ โ with create_prediction_pipeline( โ
โ 881 โ โ โ bioimageio_model=model, devices=devices, weight_format=weight_format โ
โ 882 โ โ ) as prediction_pipeline: โ
โ 883 โ โ โ prediction_pipeline.apply_preprocessing(test_input) โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 468 โ โ โ f"deprecated create_prediction_pipeline kwargs: {set(deprecated_kwargs)}" โ
โ 469 โ โ ) โ
โ 470 โ โ
โ โฑ 471 โ model_adapter = model_adapter or create_model_adapter( โ
โ 472 โ โ model_description=bioimageio_model, โ
โ 473 โ โ devices=devices, โ
โ 474 โ โ weight_format_priority_order=weights_format and (weights_format,), โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 183 โ โ assert errors โ
โ 184 โ โ if len(weight_format_priority_order) == 1: โ
โ 185 โ โ โ assert len(errors) == 1 โ
โ โฑ 186 โ โ โ raise errors[0] โ
โ 187 โ โ โ
โ 188 โ โ else: โ
โ 189 โ โ โ msg = ( โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 113 โ โ โ โ try: โ
โ 114 โ โ โ โ โ from .pytorch_backend import PytorchModelAdapter โ
โ 115 โ โ โ โ โ โ
โ โฑ 116 โ โ โ โ โ return PytorchModelAdapter( โ
โ 117 โ โ โ โ โ โ model_description=model_description, devices=devices โ
โ 118 โ โ โ โ โ ) โ
โ 119 โ โ โ โ except Exception as e: โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 62 โ โ โ raise ValueError("No `pytorch_state_dict` weights found") โ
โ 63 โ โ โ
โ 64 โ โ devices = get_devices(devices) โ
โ โฑ 65 โ โ self._model = load_torch_model(weights, load_state=True, devices=devices) โ
โ 66 โ โ if mode == "eval": โ
โ 67 โ โ โ self._model = self._model.eval() โ
โ 68 โ โ elif mode == "train": โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 157 โ โ use_devices = get_devices(devices) โ
โ 158 โ โ torch_model = torch_model.to(use_devices[0]) โ
โ 159 โ โ if load_state: โ
โ โฑ 160 โ โ โ torch_model = load_torch_state_dict( โ
โ 161 โ โ โ โ torch_model, โ
โ 162 โ โ โ โ path=download(weight_spec), โ
โ 163 โ โ โ โ devices=use_devices, โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 204 โ โ โ โ ) โ
โ 205 โ โ โ โ raise ValueError(msg) from e โ
โ 206 โ โ
โ โฑ 207 โ incompatible = model.load_state_dict(state, strict=strict) โ
โ 208 โ if ( โ
โ 209 โ โ isinstance(incompatible, tuple) โ
โ 210 โ โ and hasattr(incompatible, "missing_keys") โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
TypeError: PredictorAdaptor.load_state_dict() got an unexpected keyword argument 'strict'
Traceback 2
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 1124 โ try: โ
โ 1125 โ โ test_input = get_test_input_sample(model) โ
โ 1126 โ โ โ
โ โฑ 1127 โ โ with create_prediction_pipeline( โ
โ 1128 โ โ โ bioimageio_model=model, devices=devices, weight_format=weight_format โ
โ 1129 โ โ ) as prediction_pipeline: โ
โ 1130 โ โ โ for n, batch_size, inputs, exptected_output_shape in generate_test_cases(): โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 468 โ โ โ f"deprecated create_prediction_pipeline kwargs: {set(deprecated_kwargs)}" โ
โ 469 โ โ ) โ
โ 470 โ โ
โ โฑ 471 โ model_adapter = model_adapter or create_model_adapter( โ
โ 472 โ โ model_description=bioimageio_model, โ
โ 473 โ โ devices=devices, โ
โ 474 โ โ weight_format_priority_order=weights_format and (weights_format,), โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 183 โ โ assert errors โ
โ 184 โ โ if len(weight_format_priority_order) == 1: โ
โ 185 โ โ โ assert len(errors) == 1 โ
โ โฑ 186 โ โ โ raise errors[0] โ
โ 187 โ โ โ
โ 188 โ โ else: โ
โ 189 โ โ โ msg = ( โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 113 โ โ โ โ try: โ
โ 114 โ โ โ โ โ from .pytorch_backend import PytorchModelAdapter โ
โ 115 โ โ โ โ โ โ
โ โฑ 116 โ โ โ โ โ return PytorchModelAdapter( โ
โ 117 โ โ โ โ โ โ model_description=model_description, devices=devices โ
โ 118 โ โ โ โ โ ) โ
โ 119 โ โ โ โ except Exception as e: โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 62 โ โ โ raise ValueError("No `pytorch_state_dict` weights found") โ
โ 63 โ โ โ
โ 64 โ โ devices = get_devices(devices) โ
โ โฑ 65 โ โ self._model = load_torch_model(weights, load_state=True, devices=devices) โ
โ 66 โ โ if mode == "eval": โ
โ 67 โ โ โ self._model = self._model.eval() โ
โ 68 โ โ elif mode == "train": โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 157 โ โ use_devices = get_devices(devices) โ
โ 158 โ โ torch_model = torch_model.to(use_devices[0]) โ
โ 159 โ โ if load_state: โ
โ โฑ 160 โ โ โ torch_model = load_torch_state_dict( โ
โ 161 โ โ โ โ torch_model, โ
โ 162 โ โ โ โ path=download(weight_spec), โ
โ 163 โ โ โ โ devices=use_devices, โ
โ โ
โ /usr/share/miniconda/envs/08f8ffa27c39c9aa97fede9155e0b8428e8e934a25bbb625c5d1dd8c912d76f5/lib/p โ
โ โ
โ 204 โ โ โ โ ) โ
โ 205 โ โ โ โ raise ValueError(msg) from e โ
โ 206 โ โ
โ โฑ 207 โ incompatible = model.load_state_dict(state, strict=strict) โ
โ 208 โ if ( โ
โ 209 โ โ isinstance(incompatible, tuple) โ
โ 210 โ โ and hasattr(incompatible, "missing_keys") โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
TypeError: PredictorAdaptor.load_state_dict() got an unexpected keyword argument 'strict'