FL33TW00D-HF HF staff commited on
Commit
0d45c89
1 Parent(s): b2e6288

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -0
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: mask-generation
4
+ library_name: coreml
5
+ ---
6
+
7
+ # SAM2 Small Core ML
8
+
9
+ SAM 2 (Segment Anything in Images and Videos), is a collection of foundation models from FAIR that aim to solve promptable visual segmentation in images and videos. See the [SAM 2 paper](https://arxiv.org/abs/2408.00714) for more information.
10
+
11
+ This is the Core ML version of [SAM 2 Tiny](https://huggingface.co/facebook/sam2-hiera-tiny), and is suitable for use with the [SAM2 Studio demo app](https://github.com/huggingface/sam2-studio). It was converted in `float16` precision using [this fork](https://github.com/huggingface/segment-anything-2/tree/coreml-conversion) of the original code repository.
12
+
13
+ ## Download
14
+
15
+ Install `huggingface-cli`
16
+
17
+ ```bash
18
+ brew install huggingface-cli
19
+ ```
20
+
21
+ ```bash
22
+ huggingface-cli download --local-dir models coreml-projects/coreml-sam2-small
23
+ ```
24
+
25
+ ## Citation
26
+
27
+ To cite the paper, model, or software, please use the below:
28
+ ```
29
+ @article{ravi2024sam2,
30
+ title={SAM 2: Segment Anything in Images and Videos},
31
+ author={Ravi, Nikhila and Gabeur, Valentin and Hu, Yuan-Ting and Hu, Ronghang and Ryali, Chaitanya and Ma, Tengyu and Khedr, Haitham and R{\"a}dle, Roman and Rolland, Chloe and Gustafson, Laura and Mintun, Eric and Pan, Junting and Alwala, Kalyan Vasudev and Carion, Nicolas and Wu, Chao-Yuan and Girshick, Ross and Doll{\'a}r, Piotr and Feichtenhofer, Christoph},
32
+ journal={arXiv preprint arXiv:2408.00714},
33
+ url={https://arxiv.org/abs/2408.00714},
34
+ year={2024}
35
+ }
36
+ ```