You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two runs with an hour or two in between, today: here and here.
self = <plantseg.core.zoo.ModelZoo object at 0x7fa99c6d2540>
model_id = 'efficient-chipmunk'
defget_model_by_id(self, model_id: str):
"""Load model from BioImage.IO Model Zoo.
E.g. model_id ='efficient-chipmunk', whose RDFURLis:
https://bioimage-io.github.io/collection-bioimage-io/rdfs/10.[52](https://github.com/kreshuklab/plant-seg/actions/runs/11962866393/job/33352160971#step:11:53)81/zenodo.8401064/8429203/rdf.yaml"""ifnotself._bioimageio_zoo_all_model_url_dict:
self.refresh_bioimageio_zoo_urls()
if model_id notinself._bioimageio_zoo_all_model_url_dict:
raiseValueError(f"Model ID {model_id} not found in BioImage.IO Model Zoo")
rdf_url =self._bioimageio_zoo_all_model_url_dict[model_id]
model_description = load_description(rdf_url) #FIXME: HERE - I think it's an issue from Bioimage.IO Spec# Check if description is `ResourceDescr`ifisinstance(model_description, InvalidDescr):
model_description.validation_summary.display()
> raise ValueError(f"Failed to load {model_id}")
E ValueError: Failed to load efficient-chipmunk
plantseg/core/zoo.py:343: ValueError
----------------------------- Captured stdout call -----------------------------
❌ bioimageio format validation failed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
source https://bioimage-io.github.io/collection-bioimage-io/rdfs…
format version model 0.4.9
bioimageio.spec 0.5.3.5
❓ location detail
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✔️ . initialized InvalidDescr to describe model
unknown
❌ . bioimageio.spec format validation model
0.4.10
🔍 context.perform_io_checks True
🔍 context.root https://bioimage-io.github.io/collection-b…
🔍 context.warning_level error
❌ . ModelDescr is not fully defined; you should
define Path, then call
ModelDescr.model_rebuild().For further
information visit
https://errors.pydantic.dev/2.10/u/class-n…
common_nodes.py, line 414, in _load_impl
rd =cls.model_validate(data)
^^^^^^^^^^^^^^^^^^^^^^^^node.py, line 66,
in model_validate returnsuper().model_validate(
^^^^^^^^^^^^^^^^^^^^^^^main.py, line [62](https://github.com/kreshuklab/plant-seg/actions/runs/11962866393/job/33352160971#step:11:63)2, in model_validate returncls.__pydantic_validator__.validate_python(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
line 100, ingetattrraise
PydanticUserError(self._error_message,
code=self._code)
The text was updated successfully, but these errors were encountered:
cannot reproduce this with pydantic 2.9.2, but after updating to pydantic 2.10.1.
It is likely related to pydantic/pydantic#10925
Will investigate a fix. In the meantime please pin to pydantic <2.10
There are two runs with an hour or two in between, today: here and here.
The text was updated successfully, but these errors were encountered: