Closed constantinpape closed 4 months ago
It's unclear to me why this fails since all these values should be valid according to https://github.com/bioimage-io/spec-bioimage-io/blob/main/bioimageio/spec/model/v0_4.py#L599 .
the docstring you're referring to is in model v0.4
In model v0.5 v0_4.ZeroMeanUnitVarianceDescr
was split up into ZeroMeanUnitVarianceDescr
that does not allow (fixed) mean
and std
values (use FixedZeroMeanUnitVarianceDescr
or ScaleLinearDescr
instead).
Furthermore mode
was removed and instead axes
may or may not contain the batch
axis, see https://github.com/bioimage-io/spec-bioimage-io/blob/0debec1daefdbbf01a1e609f2d5e48221972428a/bioimageio/spec/model/v0_5.py#L939-L946
Also note that the default channel axis id is now 'channel', if you haven't changed that "axes": "cyx"
will also be invalid. (should be ('channel', 'y', 'x')
instead)
Ok, that fixes it. Thanks!
The creation of (Pre)processing descriptions does not work as I would expect it.
I would expect the following code to work:
However, only the
ScaleLinearDescr
works.ZeroMeanUnitVarianceDescr
fails with these validation errors:It's unclear to me why this fails since all these values should be valid according to https://github.com/bioimage-io/spec-bioimage-io/blob/main/bioimageio/spec/model/v0_4.py#L599 .