Closed morestart closed 4 months ago
I used inference.py to load segment_anything_vit_h_encoder_quant.onnx,but I received an error:
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: x Got: 3 Expected: 4 Please fix either the inputs or the model.
__init__.py file is missing under samexporter subfolder. Create an empty file then it works fine.
@satyajandhyala Could you create a pull request to fix it? Thank you very much!
Please note this issue occurs with PyPi installation for version 0.2. Consider providing new release with this fix.
The installation from source for the same version works
Published v0.3.0 for this issue. Thank @Greg7000 !