Skip to content

Commit

Permalink
Defining ARBITRARY_SIZE
Browse files Browse the repository at this point in the history
In case it is not defined, it defined it
  • Loading branch information
Pablo1990 authored Jan 7, 2025
1 parent 100081a commit 4896dd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cellpose/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
Version,
WeightsDescr,
)
# Define ARBITRARY_SIZE if it is not available in the module
try:
from bioimageio.spec.model.v0_5 import ARBITRARY_SIZE
except ImportError:
ARBITRARY_SIZE = 1 # or set to a default value if appropriate

from bioimageio.spec.common import HttpUrl
from bioimageio.spec import save_bioimageio_package
from bioimageio.core import test_model
Expand Down

0 comments on commit 4896dd4

Please sign in to comment.