samexporter
samexporter copied to clipboard
use single point prompt mask decoder slow than pytorch, how to solve this problem?
I have runned the same experiment too: with a Macbook Air M2 it takes the following times to extract image embedding with ViT-L (sam_vit_h_4b8939):
- ~36 seconds with pt weights
- ~42 seconds with onnx encoder extracted with
samexporter.export_encoder - ~ 39 seconds with onnx encoder quantized extracted with
samexporter.export_encoder