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

Efficient SAM is not compliant with onnx standard #269

Open
DaniAffCH opened this issue Aug 15, 2024 · 0 comments
Open

Efficient SAM is not compliant with onnx standard #269

DaniAffCH opened this issue Aug 15, 2024 · 0 comments

Comments

@DaniAffCH
Copy link
Contributor

DaniAffCH commented Aug 15, 2024

The model image_segmentation_efficientsam introduced in #258 does not comply with the ONNX standard.

To verify this, you can use the following snippet:

import onnx
model = onnx.load("image_segmentation_efficientsam_ti_2024may.onnx")
onnx.checker.check_model(model, full_check=True)

The ONNX checker raises the following exception:

onnx.onnx_cpp2py_export.shape_inference.InferenceError: [ShapeInferenceError] Inference error(s): (op_type:Tile, node name: /mask_decoder/Tile): [ShapeInferenceError] Inferred shape and existing shape differ in rank: (5) vs (0)
(op_type:Reshape, node name: /mask_decoder/transformer/Reshape): [ShapeInferenceError] Dimension could not be inferred: incompatible shapes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant