Downloads · 30 days
0
0% of all-time downloads
gifty-so/shoppy-mobilesam
shoppy-mobilesam is a image segmentation model from gifty-so. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
MobileSAM models in ONNX format for on-device mobile inference.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
24
Public
Repo size
150 MB
Likes
1
Public
Click a slice to open those files.
.data52 MB · 35%
From the Hugging Face model README
MobileSAM models in ONNX format for on-device mobile inference.
mobile_sam_encoder.onnx + .onnx.data - Image encoder (27MB)mobile_sam_decoder.onnx + .onnx.data - Mask decoder (23MB)These models are designed for React Native applications using onnxruntime-react-native.
const ENCODER_MODEL_URL = 'https://huggingface.co/gifty-so/shoppy-mobilesam/resolve/main/mobile_sam_encoder.onnx';
const DECODER_MODEL_URL = 'https://huggingface.co/gifty-so/shoppy-mobilesam/resolve/main/mobile_sam_decoder.onnx';
Encoder:
input (float32, shape: [1, 3, 1024, 1024])
image_embeddings (float32, shape: [1, 256, 64, 64])Decoder:
image_embeddings (from encoder)point_coords (float32, shape: [1, N, 2]) - Point coordinates normalized to [0, 1024]point_labels (float32, shape: [1, N]) - 1 for positive, 0 for negativemask_input (float32, shape: [1, 1, 256, 256]) - Previous mask or zeroshas_mask_input (float32, shape: [1]) - 0 or 1orig_im_size (float32, shape: [2]) - Original image dimensionsmasks (float32) - Segmentation masksiou_predictions (float32) - Confidence scoresApache 2.0
MobileSAM: https://github.com/ChaoningZhang/MobileSAM