facebookresearch / segment-anything

The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
47.9k stars 5.67k forks source link

encounter one error in onnx_model_example.ipynb #669

Open BoomSky0416 opened 10 months ago

BoomSky0416 commented 10 months ago

image

heyoeyo commented 10 months ago

The short answer is this happens due to a breaking change in newer versions of the onnxruntime library. The simplest fix is to just comment out the optimize_model=True, line. A more detailed answer can be found in #611.