transformers.js icon indicating copy to clipboard operation
transformers.js copied to clipboard

How can we use the sam-vit-huge in the production?

Open moneyhotspring opened this issue 1 year ago • 0 comments

Question

The size of ONNX files for sam-vit-huge is around 600MB. If I am using the implementation mentioned in the documentation, it downloads these files first before performing the image segmentation. Is there a better way to avoid downloading these files and reduce the time it takes? Additionally, the model is taking too much time to generate embeddings when using sam-vit-huge or sam-vit-large.

moneyhotspring avatar Feb 09 '24 17:02 moneyhotspring