ibaiGorordo / ONNX-SAM2-Segment-Anything

Python scripts for the Segment Anythin 2 (SAM2) model in ONNX
MIT License
165 stars 9 forks source link

Problems in onnxsim #12

Open kuaitoukid opened 2 months ago

kuaitoukid commented 2 months ago

When I tried the onnxsim base_encoder.onnx base_encoder.onnx, an error raised.

Error message:

RuntimeError: /project/third_party/onnx-optimizer/onnxoptimizer/passes/eliminate_shape_gather.h:48: runTransform: Assertion indices_val < dims.size() failed.

Does anyone know the solution, thank you!