From 100081ae2962abd34931b1d04abb1bbb0c3f7253 Mon Sep 17 00:00:00 2001 From: Pablo Vicente Munuera Date: Tue, 7 Jan 2025 11:41:54 +0000 Subject: [PATCH] Bugfix: Removing unused 'ARBITRARY_SIZE' 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 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': https://github.com/bioimage-io/spec-bioimage-io/commit/39d343681d427ec93cf69eef7597d9eb9678deb1 By removing the parameter, this code will work again. --- cellpose/export.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cellpose/export.py b/cellpose/export.py index 78a92ece..ffc6bc46 100644 --- a/cellpose/export.py +++ b/cellpose/export.py @@ -54,7 +54,6 @@ from cellpose.resnet_torch import CPnetBioImageIO from bioimageio.spec.model.v0_5 import ( - ARBITRARY_SIZE, ArchitectureFromFileDescr, Author, AxisId,