HenriquesLab / DL4MicEverywhere

Bringing the ZeroCostDL4Mic experience running everywhere via easy-to-install docker images
Creative Commons Attribution 4.0 International
68 stars 10 forks source link

StarDist_2D_ZeroCostDL4Mic.ipynb ImportError: cannot import name 'load_resource_description' from 'bioimageio.core' #54

Open jazberna1 opened 1 month ago

jazberna1 commented 1 month ago

Hello,

I have encountered the following error when running the note book StarDist_2D_ZeroCostDL4Mic.ipynb v1.20 ImportError: cannot import name 'load_resource_description' from 'bioimageio.core' (/usr/local/lib/python3.10/dist-packages/bioimageio/core/__init__.py)

Screenshot 2024-09-02 at 14 26 52

I have reproduced the error both downloading and building the image dde721010650 To give you some more information: Inside the running container the bioimageio.core the version is 0.6.8 Then inside the python interpreter I checked that load_resource_description is not there

import bioimageio.core
dir(bioimageio.core)

['Axis', 'AxisId', 'BlockMeta', 'MemberId', 'PredictionPipeline', 'Sample', 'Tensor', 'VERSION', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', '_magic_tensor_ops', '_op_base', '_prediction_pipeline', '_resource_tests', '_settings', 'axis', 'block', 'block_meta', 'build_description', 'common', 'create_prediction_pipeline', 'digest_spec', 'dump_description', 'io', 'load_description', 'load_description_and_test', 'load_description_and_validate_format_only', 'load_model', 'load_resource', 'model_adapters', 'predict', 'predict_many', 'prediction', 'proc_ops', 'proc_setup', 'sample', 'save_bioimageio_package', 'save_bioimageio_package_as_folder', 'save_bioimageio_yaml_only', 'settings', 'stat_calculators', 'stat_measures', 'tensor', 'test_description', 'test_model', 'test_resource', 'utils', 'validate_format']

What I think It happened here is that load_resource_description was renamed to load_description

https://github.com/bioimage-io/core-bioimage-io-python/commit/2fc6f3aba2a847388bbf80a6a391efb05d0ae1e6

Best, Jorge