ybelkada commited on
Commit
8f053d4
·
1 Parent(s): 80bd6c8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -1,5 +1,10 @@
 
 
 
1
  # Segment Anything
2
 
 
 
3
  **[Meta AI Research, FAIR](https://ai.facebook.com/research/)**
4
 
5
  [Alexander Kirillov](https://alexander-kirillov.github.io/), [Eric Mintun](https://ericmintun.github.io/), [Nikhila Ravi](https://nikhilaravi.com/), [Hanzi Mao](https://hanzimao.me/), Chloe Rolland, Laura Gustafson, [Tete Xiao](https://tetexiao.com), [Spencer Whitehead](https://www.spencerwhitehead.com/), Alex Berg, Wan-Yen Lo, [Piotr Dollar](https://pdollar.github.io/), [Ross Girshick](https://www.rossgirshick.info/)
@@ -15,6 +20,20 @@ The **Segment Anything Model (SAM)** produces high quality object masks from inp
15
  <img src="https://raw.githubusercontent.com/facebookresearch/segment-anything/main/assets/masks2.jpg" width="61.5%" />
16
  </p>
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ## Installation
19
 
20
  The code requires `python>=3.8`, as well as `pytorch>=1.7` and `torchvision>=0.8`. Please follow the instructions [here](https://pytorch.org/get-started/locally/) to install both PyTorch and TorchVision dependencies. Installing both PyTorch and TorchVision with CUDA support is strongly recommended.
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
  # Segment Anything
5
 
6
+ This repository is the mirror of the official [Segment Anything repository](https://github.com/facebookresearch/segment-anything).
7
+
8
  **[Meta AI Research, FAIR](https://ai.facebook.com/research/)**
9
 
10
  [Alexander Kirillov](https://alexander-kirillov.github.io/), [Eric Mintun](https://ericmintun.github.io/), [Nikhila Ravi](https://nikhilaravi.com/), [Hanzi Mao](https://hanzimao.me/), Chloe Rolland, Laura Gustafson, [Tete Xiao](https://tetexiao.com), [Spencer Whitehead](https://www.spencerwhitehead.com/), Alex Berg, Wan-Yen Lo, [Piotr Dollar](https://pdollar.github.io/), [Ross Girshick](https://www.rossgirshick.info/)
 
20
  <img src="https://raw.githubusercontent.com/facebookresearch/segment-anything/main/assets/masks2.jpg" width="61.5%" />
21
  </p>
22
 
23
+ ## Download the checkpoints
24
+
25
+ ```bash
26
+ pip install huggingface_hub
27
+ ```
28
+
29
+ Then,
30
+
31
+ ```python
32
+ from huggingface_hub import hf_hub_download
33
+
34
+ chkpt_path = hf_hub_download("facebook/segment-anything", "checkpoints/sam_vit_b_01ec64.pth")
35
+ ```
36
+
37
  ## Installation
38
 
39
  The code requires `python>=3.8`, as well as `pytorch>=1.7` and `torchvision>=0.8`. Please follow the instructions [here](https://pytorch.org/get-started/locally/) to install both PyTorch and TorchVision dependencies. Installing both PyTorch and TorchVision with CUDA support is strongly recommended.