FL33TW00D-HF HF staff pcuenq HF staff commited on
Commit
f03d2ad
1 Parent(s): f051fae

Update README (#1)

Browse files

- Update README (cf81c326387edbb4ec5866e154a7fa2b36a03510)
- Update README (4e02c778c7bff025c4f17421db8c3c0f81762a5c)


Co-authored-by: Pedro Cuenca <[email protected]>

Files changed (1) hide show
  1. README.md +21 -3
README.md CHANGED
@@ -1,10 +1,28 @@
1
  ---
2
  license: apache-2.0
3
  pipeline_tag: mask-generation
4
- library_name: sam2
5
  ---
6
 
7
- ### Citation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  To cite the paper, model, or software, please use the below:
10
  ```
@@ -15,4 +33,4 @@ To cite the paper, model, or software, please use the below:
15
  url={https://arxiv.org/abs/2408.00714},
16
  year={2024}
17
  }
18
- ```
 
1
  ---
2
  license: apache-2.0
3
  pipeline_tag: mask-generation
4
+ library_name: coreml
5
  ---
6
 
7
+ # SAM2 Tiny 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-swiftui). It was converted in `float16` precision using [this fork](https://github.com/FL33TW00D/segment-anything-2/tree/feature/SAM2) 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-tiny
23
+ ```
24
+
25
+ ## Citation
26
 
27
  To cite the paper, model, or software, please use the below:
28
  ```
 
33
  url={https://arxiv.org/abs/2408.00714},
34
  year={2024}
35
  }
36
+ ```