Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onnx model constrains input shape #509

Open
FynnBe opened this issue May 23, 2023 · 1 comment
Open

onnx model constrains input shape #509

FynnBe opened this issue May 23, 2023 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@FynnBe
Copy link
Member

FynnBe commented May 23, 2023

Also the input size for the onnx model seems to be constrained to [1, 1, 256, 256] only

Originally posted by @carlosuc3m in bioimage-io/collection-bioimage-io#540 (comment)

It seems like we need to allow onnx weights to specify/overwrite their own input shape(s).

something like this probably:

...
weights:
    onnx:
        ...
        inputs: [{shape: [1, 1, 256, 256}]
@FynnBe
Copy link
Member Author

FynnBe commented Nov 13, 2024

alternatively (and ideally) we figure out how to enforce that the batch dimension has shape "-1" (which I think is the onnx convention to indicate an arbitrary size).
In addition it would be nice to find a convenient way to convert existing, fixed-batch-size onnx weights.

@FynnBe FynnBe added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant