Skip to content

Commit

Permalink
Bugfix: Removing unused 'ARBITRARY_SIZE'
Browse files Browse the repository at this point in the history
Found error:
Traceback (most recent call last):
  File "/home/pablo/mambaforge/envs/colab_cellpose/lib/python3.10/site-packages/cellpose/export.py", line 56, in <module>
    from bioimageio.spec.model.v0_5 import (
ImportError: cannot import name 'ARBITRARY_SIZE' from 'bioimageio.spec.model.v0_5' (/home/pablo/mambaforge/envs/colab_cellpose/lib/python3.10/site-packages/bioimageio/spec/model/v0_5.py)

It turns out, they removed 'ARBITRARY_SIZE':
bioimage-io/spec-bioimage-io@39d3436

By removing the parameter, this code will work again.
  • Loading branch information
Pablo1990 authored Jan 7, 2025
1 parent 537c65d commit 100081a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cellpose/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
from cellpose.resnet_torch import CPnetBioImageIO

from bioimageio.spec.model.v0_5 import (
ARBITRARY_SIZE,
ArchitectureFromFileDescr,
Author,
AxisId,
Expand Down

0 comments on commit 100081a

Please sign in to comment.