Skip to content

Core Compatibility Report: amiable-otter/v0ยค

๐ŸŸก bioimageio format validation
status valid-format
source https://hypha.aicell.io/bioimage-io/artifacts/amiable-otter/files/rdf.yaml?version=v0
id amiable-otter
format version model 0.5.6
bioimageio.spec 0.5.6.0
Location Details
โœ”๏ธ Successfully created `ModelDescr` instance.
โœ”๏ธ bioimageio.spec format validation model 0.5.6
โš  inputs.0.sample_tensor
Needs to be filled for FAIR compliance
โš  outputs.0.sample_tensor
Needs to be filled for FAIR compliance
โŒ weights.pytorch_state_dict Reproduce test outputs from test inputs (pytorch_state_dict)
โŒ weights.pytorch_state_dict
Failed to import bmz_model.py
See Traceback 1.
weights.pytorch_state_dict
recommended conda environment (Reproduce test outputs from test inputs (pytorch_state_dict))
%YAML 1.2
---
channels:
  - pytorch
  - conda-forge
  - nodefaults
dependencies:
  - conda-forge::bioimageio.core
  - mkl ==2024.0.0
  - numpy <2
  - pip
  - pytorch==1.13.1
  - setuptools <70.0.0
  - torchaudio==0.13.1
  - torchvision==0.14.1
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.

Traceback 1








    
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   142 โ”‚   โ”‚   โ”‚   sys.modules[module_name] = module  # cache this module                         โ”‚
โ”‚   143 โ”‚   โ”‚   โ”‚                                                                                  โ”‚
โ”‚   144 โ”‚   โ”‚   โ”‚   assert importlib_spec.loader is not None                                       โ”‚
โ”‚ โฑ 145 โ”‚   โ”‚   โ”‚   importlib_spec.loader.exec_module(module)                                      โ”‚
โ”‚   146 โ”‚   โ”‚                                                                                      โ”‚
โ”‚   147 โ”‚   โ”‚   except Exception as e:                                                             โ”‚
โ”‚   148 โ”‚   โ”‚   โ”‚   if module_name in sys.modules:                                                 โ”‚
โ”‚ in exec_module:883                                                                               โ”‚
โ”‚ in _call_with_frames_removed:241                                                                 โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /tmp/tmp6lp6631h/bmz_model_5541387ffb9eefaac2b9c2763b8b45119186c7ee1fe248d025990420cb979225.py:6 โ”‚
โ”‚                                                                                                  โ”‚
โ”‚      3 from functools import partial                                                             โ”‚
โ”‚      4 from inspect import isfunction                                                            โ”‚
โ”‚      5                                                                                           โ”‚
โ”‚ โฑ    6 import yaml                                                                               โ”‚
โ”‚      7 import torch                                                                              โ”‚
โ”‚      8 import torch.nn as nn                                                                     โ”‚
โ”‚      9 import numpy as np                                                                        โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
ModuleNotFoundError: No module named 'yaml'

The above exception was the direct cause of the following exception:

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    781 โ”‚   โ”‚   test_input = get_test_input_sample(model)                                         โ”‚
โ”‚    782 โ”‚   โ”‚   expected = get_test_output_sample(model)                                          โ”‚
โ”‚    783 โ”‚   โ”‚                                                                                     โ”‚
โ”‚ โฑ  784 โ”‚   โ”‚   with create_prediction_pipeline(                                                  โ”‚
โ”‚    785 โ”‚   โ”‚   โ”‚   bioimageio_model=model, devices=devices, weight_format=weight_format          โ”‚
โ”‚    786 โ”‚   โ”‚   ) as prediction_pipeline:                                                         โ”‚
โ”‚    787 โ”‚   โ”‚   โ”‚   results = prediction_pipeline.predict_sample_without_blocking(test_input)     โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   368 โ”‚   โ”‚   โ”‚   f"deprecated create_prediction_pipeline kwargs: {set(deprecated_kwargs)}"      โ”‚
โ”‚   369 โ”‚   โ”‚   )                                                                                  โ”‚
โ”‚   370 โ”‚                                                                                          โ”‚
โ”‚ โฑ 371 โ”‚   model_adapter = model_adapter or create_model_adapter(                                 โ”‚
โ”‚   372 โ”‚   โ”‚   model_description=bioimageio_model,                                                โ”‚
โ”‚   373 โ”‚   โ”‚   devices=devices,                                                                   โ”‚
โ”‚   374 โ”‚   โ”‚   weight_format_priority_order=weights_format and (weights_format,),                 โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   166 โ”‚   โ”‚   assert errors                                                                      โ”‚
โ”‚   167 โ”‚   โ”‚   if len(weight_format_priority_order) == 1:                                         โ”‚
โ”‚   168 โ”‚   โ”‚   โ”‚   assert len(errors) == 1                                                        โ”‚
โ”‚ โฑ 169 โ”‚   โ”‚   โ”‚   raise errors[0]                                                                โ”‚
โ”‚   170 โ”‚   โ”‚                                                                                      โ”‚
โ”‚   171 โ”‚   โ”‚   else:                                                                              โ”‚
โ”‚   172 โ”‚   โ”‚   โ”‚   msg = (                                                                        โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   109 โ”‚   โ”‚   โ”‚   โ”‚   try:                                                                       โ”‚
โ”‚   110 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   from .pytorch_backend import PytorchModelAdapter                       โ”‚
โ”‚   111 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚                                                                          โ”‚
โ”‚ โฑ 112 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   return PytorchModelAdapter(                                            โ”‚
โ”‚   113 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   model_description=model_description, devices=devices               โ”‚
โ”‚   114 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   )                                                                      โ”‚
โ”‚   115 โ”‚   โ”‚   โ”‚   โ”‚   except Exception as e:                                                     โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    35 โ”‚   โ”‚   โ”‚   raise ValueError("No `pytorch_state_dict` weights found")                      โ”‚
โ”‚    36 โ”‚   โ”‚                                                                                      โ”‚
โ”‚    37 โ”‚   โ”‚   devices = get_devices(devices)                                                     โ”‚
โ”‚ โฑ  38 โ”‚   โ”‚   self._model = load_torch_model(weights, load_state=True, devices=devices)          โ”‚
โ”‚    39 โ”‚   โ”‚   if mode == "eval":                                                                 โ”‚
โ”‚    40 โ”‚   โ”‚   โ”‚   self._model = self._model.eval()                                               โ”‚
โ”‚    41 โ”‚   โ”‚   elif mode == "train":                                                              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   100 โ”‚   load_state: bool = True,                                                               โ”‚
โ”‚   101 โ”‚   devices: Optional[Sequence[Union[str, torch.device]]] = None,                          โ”‚
โ”‚   102 ) -> nn.Module:                                                                            โ”‚
โ”‚ โฑ 103 โ”‚   custom_callable = import_callable(                                                     โ”‚
โ”‚   104 โ”‚   โ”‚   weight_spec.architecture,                                                          โ”‚
โ”‚   105 โ”‚   โ”‚   sha256=(                                                                           โ”‚
โ”‚   106 โ”‚   โ”‚   โ”‚   weight_spec.architecture_sha256                                                โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    73 โ”‚   elif isinstance(node, CallableFromFile):                                               โ”‚
โ”‚    74 โ”‚   โ”‚   c = _import_from_file_impl(node.source_file, str(node.callable_name), **kwargs)    โ”‚
โ”‚    75 โ”‚   elif isinstance(node, ArchitectureFromFileDescr):                                      โ”‚
โ”‚ โฑ  76 โ”‚   โ”‚   c = _import_from_file_impl(node.source, str(node.callable), sha256=node.sha256)    โ”‚
โ”‚    77 โ”‚   else:                                                                                  โ”‚
โ”‚    78 โ”‚   โ”‚   assert_never(node)                                                                 โ”‚
โ”‚    79                                                                                            โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ /usr/share/miniconda/envs/b67f0851ec76977c6bebe397fb842f1c9b3e02c3f4da6dba02caf69ff1f8a0ee/lib/p โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   148 โ”‚   โ”‚   โ”‚   if module_name in sys.modules:                                                 โ”‚
โ”‚   149 โ”‚   โ”‚   โ”‚   โ”‚   del sys.modules[module_name]                                               โ”‚
โ”‚   150 โ”‚   โ”‚   โ”‚                                                                                  โ”‚
โ”‚ โฑ 151 โ”‚   โ”‚   โ”‚   raise ImportError(f"Failed to import {source}") from e                         โ”‚
โ”‚   152 โ”‚                                                                                          โ”‚
โ”‚   153 โ”‚   try:                                                                                   โ”‚
โ”‚   154 โ”‚   โ”‚   callable_attr = getattr(module, callable_name)                                     โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
ImportError: Failed to import bmz_model.py