samexporter icon indicating copy to clipboard operation
samexporter copied to clipboard

use single point prompt mask decoder slow than pytorch, how to solve this problem?

Open stihuangyuan opened this issue 2 years ago • 1 comments

stihuangyuan avatar Jun 28 '23 05:06 stihuangyuan

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):

  1. ~36 seconds with pt weights
  2. ~42 seconds with onnx encoder extracted with samexporter.export_encoder
  3. ~ 39 seconds with onnx encoder quantized extracted with samexporter.export_encoder

AlessandroMondin00 avatar Jul 05 '23 09:07 AlessandroMondin00