|
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 |
| โ |
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 |
| โ |
outputs.3.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
outputs.4.sample_tensor |
Needs to be filled for FAIR compliance |
| โ |
outputs.5.sample_tensor |
Needs to be filled for FAIR compliance |
| โ๏ธ |
weights.pytorch_state_dict |
Created conda environment '6cb978b242bca9861aed0ef0a3037223eb3e4f844c977039e2e140246450642e' |
| โ |
weights.pytorch_state_dict |
Reproduce test outputs from test inputs (pytorch_state_dict) |
| โ |
weights.pytorch_state_dict |
CPnet.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
---
channels:
- conda-forge
- nodefaults
dependencies:
- conda-forge::bioimageio.core>=0.9.4
- pip
- pytorch==2.3.1
- torchvision==0.18.1
|
|
weights.pytorch_state_dict |
conda compare (Reproduce test outputs from test inputs (pytorch_state_dict)) |
|
|
/usr/share/miniconda/lib/python3.13/site-packages/conda/env/env.py:288: FutureWarning: The
environment file is not fully CEP 24 compliant is deprecated and will be removed in 26.9. In the
future, this configuration will be rejected. Please fix the following errors in order to make
the configuration valid: - Invalid type for 'name', expected a str deprecated.topic(
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 |
CPnet.load_state_dict() got an unexpected keyword argument 'strict' |
|
|
See Traceback 2. |
| โ๏ธ |
weights.torchscript |
Found existing conda environment '6cb978b242bca9861aed0ef0a3037223eb3e4f844c977039e2e140246450642e' |
| โ๏ธ |
weights.torchscript |
Reproduce test outputs from test inputs (torchscript) |
| โน |
weights.torchscript |
Output `flow`: all elements agree with expected values.
Max relative difference not accounted for by absolute tolerance (1.00e-03):
0.00e+00 (= \|-7.47e-02 - -7.47e-02\|/\|-7.47e-02 + 1e-6\|) at {'z': np.int64(0), 'channel': np.int64(0), 'y': np.int64(0), 'x': np.int64(0)}
Max absolute difference not accounted for by relative tolerance (1.00e-03):
0.00e+00 (= \|6.5230182e-08 - -1.8250423e-09\|) at {'z': np.int64(0), 'channel': np.int64(0), 'y': np.int64(56), 'x': np.int64(20)} |
| โน |
weights.torchscript |
Output `style`: all elements agree with expected values.
Max relative difference not accounted for by absolute tolerance (1.00e-03):
0.00e+00 (= \|-6.08e-02 - -6.08e-02\|/\|-6.08e-02 + 1e-6\|) at {'z': np.int64(0), 'channel': np.int64(0)}
Max absolute difference not accounted for by relative tolerance (1.00e-03):
0.00e+00 (= \|-4.1674111e-06 - -4.1718099e-06\|) at {'z': np.int64(8), 'channel': np.int64(100)} |
| โน |
weights.torchscript |
Output `downsampled_0`: all elements agree with expected values.
Max relative difference not accounted for by absolute tolerance (1.00e-03):
0.00e+00 (= \|8.76e-03 - 8.76e-03\|/\|8.76e-03 + 1e-6\|) at {'z': np.int64(0), 'channel': np.int64(0), 'y': np.int64(0), 'x': np.int64(0)}
Max absolute difference not accounted for by relative tolerance (1.00e-03):
0.00e+00 (= \|2.7939677e-09 - 2.3283064e-09\|) at {'z': np.int64(28), 'channel': np.int64(21), 'y': np.int64(55), 'x': np.int64(25)} |
| โน |
weights.torchscript |
Output `downsampled_1`: all elements agree with expected values.
Max relative difference not accounted for by absolute tolerance (1.00e-03):
0.00e+00 (= \|-2.46e-02 - -2.46e-02\|/\|-2.46e-02 + 1e-6\|) at {'z': np.int64(0), 'channel': np.int64(0), 'y': np.int64(0), 'x': np.int64(0)}
Max absolute difference not accounted for by relative tolerance (1.00e-03):
0.00e+00 (= \|9.5460564e-09 - 6.0535967e-09\|) at {'z': np.int64(26), 'channel': np.int64(60), 'y': np.int64(3), 'x': np.int64(2)} |
| โน |
weights.torchscript |
Output `downsampled_2`: all elements agree with expected values.
Max relative difference not accounted for by absolute tolerance (1.00e-03):
0.00e+00 (= \|1.41e-02 - 1.41e-02\|/\|1.41e-02 + 1e-6\|) at {'z': np.int64(0), 'channel': np.int64(0), 'y': np.int64(0), 'x': np.int64(0)}
Max absolute difference not accounted for by relative tolerance (1.00e-03):
0.00e+00 (= \|-9.3132257e-09 - -4.1909516e-09\|) at {'z': np.int64(74), 'channel': np.int64(113), 'y': np.int64(8), 'x': np.int64(5)} |
| โน |
weights.torchscript |
Output `downsampled_3`: all elements agree with expected values.
Max relative difference not accounted for by absolute tolerance (1.00e-03):
0.00e+00 (= \|2.14e-02 - 2.14e-02\|/\|2.14e-02 + 1e-6\|) at {'z': np.int64(0), 'channel': np.int64(0), 'y': np.int64(0), 'x': np.int64(0)}
Max absolute difference not accounted for by relative tolerance (1.00e-03):
0.00e+00 (= \|2.0489097e-08 - 1.7229468e-08\|) at {'z': np.int64(67), 'channel': np.int64(128), 'y': np.int64(6), 'x': np.int64(4)} |
|
weights.torchscript |
recommended conda environment (Reproduce test outputs from test inputs (torchscript)) |
|
|
%YAML 1.2
---
channels:
- conda-forge
- nodefaults
dependencies:
- conda-forge::bioimageio.core>=0.9.4
- pip
- pytorch==2.3.1
- torchvision==0.18.1
|
|
weights.torchscript |
conda compare (Reproduce test outputs from test inputs (torchscript)) |
|
|
/usr/share/miniconda/lib/python3.13/site-packages/conda/env/env.py:288: FutureWarning: The
environment file is not fully CEP 24 compliant is deprecated and will be removed in 26.9. In the
future, this configuration will be rejected. Please fix the following errors in order to make
the configuration valid: - Invalid type for 'name', expected a str deprecated.topic(
Success. All the packages in the specification file are present in the environment with matching
version and build string. |
| โ๏ธ |
weights.torchscript |
Run torchscript inference for inputs with batch_size: 1 and size parameter n: 0 |
| โ๏ธ |
weights.torchscript |
Run torchscript inference for inputs with batch_size: 1 and size parameter n: 1 |
| โ๏ธ |
weights.torchscript |
Run torchscript inference for inputs with batch_size: 1 and size parameter n: 2 |
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/_resource_tests.py:880 in _test โ
โ โ
โ 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) โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/_prediction_pipeline.py:471 in โ
โ โ
โ 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,), โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/_model_adapter.py:186 โ
โ โ
โ 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 = ( โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/_model_adapter.py:116 โ
โ โ
โ 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: โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/pytorch_backend.py:65 โ
โ โ
โ 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": โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/pytorch_backend.py:160 โ
โ โ
โ 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, โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/pytorch_backend.py:207 โ
โ โ
โ 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: CPnet.load_state_dict() got an unexpected keyword argument 'strict'
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/_resource_tests.py:1127 in _tes โ
โ โ
โ 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(): โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/_prediction_pipeline.py:471 in โ
โ โ
โ 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,), โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/_model_adapter.py:186 โ
โ โ
โ 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 = ( โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/_model_adapter.py:116 โ
โ โ
โ 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: โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/pytorch_backend.py:65 โ
โ โ
โ 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": โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/pytorch_backend.py:160 โ
โ โ
โ 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, โ
โ โ
โ /home/runner/.local/lib/python3.12/site-packages/bioimageio/core/backends/pytorch_backend.py:207 โ
โ โ
โ 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: CPnet.load_state_dict() got an unexpected keyword argument 'strict'