---
title: segment-anything
canonical_url: "https://www.modelscope.cn/models/SJ007NB/segment-anything"
md_url: "https://www.modelscope.cn/models/SJ007NB/segment-anything.md"
repository: SJ007NB/segment-anything
last_updated: 2025-02-12
license: "Apache License 2.0"
pipeline_tag: image-segmentation
tasks:
  - image-segmentation
library_name:
  - pytorch
frameworks:
  - Pytorch
domain:
  - nlp
downloads: 149
stars: 0
tags:
  - pretrained
---

# segment-anything

> segment-anything - SJ007NB 在 ModelScope 开源的模型。Meta AI Research, FAIR

SJ007NB/segment-anything 是 ModelScope 魔搭社区上的image-segmentation模型，采用 Apache License 2.0 许可。

- **Repository**: SJ007NB/segment-anything
- **License**: Apache License 2.0
- **Tasks**: image-segmentation
- **Tags**: pretrained
- **Downloads**: 149
- **Stars**: 0
- **Last updated**: 2025-02-12

Source: https://www.modelscope.cn/models/SJ007NB/segment-anything

---

# Segment Anything

**[Meta AI Research, FAIR](https://ai.facebook.com/research/)**

[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/)

[[`Paper`](https://ai.facebook.com/research/publications/segment-anything/)] [[`Project`](https://segment-anything.com/)] [[`Demo`](https://segment-anything.com/demo)] [[`Dataset`](https://segment-anything.com/dataset/index.html)] [[`Blog`](https://ai.facebook.com/blog/segment-anything-foundation-model-image-segmentation/)] [[`BibTeX`](#citing-segment-anything)]


Click the links below to download the checkpoint for the corresponding model type.

- **`default` or `vit_h`: [ViT-H SAM model.](https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth)**
- `vit_l`: [ViT-L SAM model.](https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth)
- `vit_b`: [ViT-B SAM model.](https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth)


### 模型文件和权重，可浏览“模型文件”页面获取。
#### 您可以通过如下git clone命令，或者ModelScope SDK来下载模型

SDK下载
```bash
#安装ModelScope
pip install modelscope
```
```python
#SDK模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('SJ007NB/segment-anything')
```
Git下载
```
#Git模型下载
git clone https://www.modelscope.cn/SJ007NB/segment-anything.git
```
