-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid model description from rdf on model zoo #449
Comments
The This is why when downloading via bioimage.io a zip file is downloaded containing all essential files (and maybe additional URLs as references for citation etc). Furthermore we only support a limited pattern of file names as
For the sake of improving our documentation in the right places it would be great to know how you downloaded only the To conclude, your options that should work are: >>> from bioimageio.spec import InvalidDescr, load_description
>>>
>>> sources = (
... "affable-shark", # (resolves to latest version)
... "affable-shark/1", # (version specific bioimage.io identifier)
... "10.5281/zenodo.11092561", # concept doi of zenodo backup (='affable-shark')
... "10.5281/zenodo.11092562", # record doi of zenodo backup (='affable-shark/1')
... "10.5281/zenodo.5764892", # legacy id from our previous implementation (='affable-shark')
... #
... # (version specific, not recommended as it relies on the particular S3 server we are currently using)
... "https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/affable-shark/1.1/files/rdf.yaml",
... )
>>>
>>> other_example_sources = (
... "https://example.com/local_package.zip", # broken in current, latest release (we also do not provide static zip file URLs at the moment)
... #
... # manual download -> loading from a local source
... "local_package.zip", # broken in current, latest release
... "local_folder", # assuming this folder has an `rdf.yaml`, `*.rdf.yaml`, `bioimageio.yaml` or `*.bioimageio.yaml` file inside.
... "rdf.yaml", # or `*.rdf.yaml`, `bioimageio.yaml` or `*.bioimageio.yaml`
... # note: Any relative paths inside `rdf.yaml` need to be available from the parent folder of the rdf.yaml
... )
>>>
>>> for src in sources:
... descr = load_description(src)
... assert not isinstance(descr, InvalidDescr)
2025-... INFO ... loading affable-shark from https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/affable-shark/1.1/files/rdf.yaml
2025-... INFO ... loading affable-shark/1 from https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/affable-shark/1/files/rdf.yaml
2025-... INFO ... loading 10.5281/zenodo.11092561 from https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/affable-shark/1.1/files/rdf.yaml
2025-... INFO ... loading 10.5281/zenodo.11092562 from https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/affable-shark/1/files/rdf.yaml
2025-... INFO ... loading 10.5281/zenodo.5764892 from https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/affable-shark/1.1/files/rdf.yaml |
Ah, ok. Thanks for the info. This makes a lot of sense. I didn't realize the rdf contained only relative paths. As for how I got the rdf: I was given the default name of "rdf.yaml" but I was testing a few different models so I renamed it to "nuclei.yaml" for my convenience not realizing that the name was important. |
I am trying to load a model from the model zoo.
Steps:
Approach 1
pip install bioimageio.core>=0.7
nuclei.yaml
pip install git+https://github.com/bioimage-io/core-bioimage-io-python
, tried again and gotException: Invalid model Description
Downloading the zip and using the model name "affable-shark" both seem to work and provide valid descriptions.
Is this a bug in
bioimageio.core
, a bug in the downloadedrdf
, or a user error?The text was updated successfully, but these errors were encountered: