ONNX
English
AiMasterPradip shubham0204 commited on
Commit
1585d52
·
0 Parent(s):

Duplicate from shubham0204/sam2-onnx-models

Browse files

Co-authored-by: Shubham Panchal <shubham0204@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ ---
6
+
7
+ # SAM/SAM2 ONNX Models
8
+
9
+ The ONNX models in this repository are converted using a **slightly modified** Colab notebook present in [github.com/ibaiGorordo/ONNX-SAM2-Segment-Anything](https://github.com/ibaiGorordo/ONNX-SAM2-Segment-Anything). Use the `sam2/sam2.py` or `annotation_app.py` scripts in the `ONNX-SAM2-Segment-Anything` repository to perform inference with the ONNX models.
10
+
11
+ Check the modified notebook here: https://github.com/shubham0204/Segment-Anything-Android/blob/main/notebooks/SAM2_ONNX_Export.ipynb
12
+
13
+ The converted ONNX models are stored in this repository to facilitate their usage in the [github.com/shubham0204/Segment-Anything-Android](https://github.com/shubham0204/Segment-Anything-Android) project, which uses the `onnxruntime` in Android to infer the SAM/SAM2 models.
14
+
15
+
16
+ ## Citations
17
+
18
+ ```text
19
+ @misc{ravi2024sam2segmentimages,
20
+ title={SAM 2: Segment Anything in Images and Videos},
21
+ author={Nikhila Ravi and Valentin Gabeur and Yuan-Ting Hu and Ronghang Hu and Chaitanya Ryali and Tengyu Ma and Haitham Khedr and Roman Rädle and Chloe Rolland and Laura Gustafson and Eric Mintun and Junting Pan and Kalyan Vasudev Alwala and Nicolas Carion and Chao-Yuan Wu and Ross Girshick and Piotr Dollár and Christoph Feichtenhofer},
22
+ year={2024},
23
+ eprint={2408.00714},
24
+ archivePrefix={arXiv},
25
+ primaryClass={cs.CV},
26
+ url={https://arxiv.org/abs/2408.00714},
27
+ }
28
+ ```
29
+
30
+ ```text
31
+ @misc{kirillov2023segment,
32
+ title={Segment Anything},
33
+ author={Alexander Kirillov and Eric Mintun and Nikhila Ravi and Hanzi Mao and Chloe Rolland and Laura Gustafson and Tete Xiao and Spencer Whitehead and Alexander C. Berg and Wan-Yen Lo and Piotr Dollár and Ross Girshick},
34
+ year={2023},
35
+ eprint={2304.02643},
36
+ archivePrefix={arXiv},
37
+ primaryClass={cs.CV},
38
+ url={https://arxiv.org/abs/2304.02643},
39
+ }
40
+ ```
sam2_hiera_base_plus_decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a0e9232d8ee93231e9d986eba7b457ffe4bb5a9d5d43b87dce8726e00f0a27b
3
+ size 16541001
sam2_hiera_base_plus_encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0effdbb8c9be0f29bb04fe96e09b93965c49ca678b82b3f3bdaff8418be0d4cd
3
+ size 277472674
sam2_hiera_small_decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c619187e57d45c5b273778ab3eb37e737fed3fac92a2341a1b109d2ef166d9ff
3
+ size 16540983
sam2_hiera_small_encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0edca276aeda91ac715c140266894ffa91885989ea6164be1eb24963ef3f67df
3
+ size 162703493
sam2_hiera_tiny_decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2008192a9ff55a2a9c46813a56015315f4230495f04e7a315dbedbe35f39a339
3
+ size 16540977
sam2_hiera_tiny_encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf8c3c0eb5943b3376261aed4c52cf335161daad0dce5af9c1a243704550ca72
3
+ size 109471936