---
title: sam2-hiera-base-plus-hf
canonical_url: "https://www.modelscope.cn/models/AI-ModelScope/sam2-hiera-base-plus-hf"
md_url: "https://www.modelscope.cn/models/AI-ModelScope/sam2-hiera-base-plus-hf.md"
repository: AI-ModelScope/sam2-hiera-base-plus-hf
last_updated: 2024-08-12
license: apache-2.0
pipeline_tag: image-segmentation
tasks:
  - image-segmentation
model_type:
  - sam2
architectures:
  - Sam2Model
parameters: 80.8M
tensor_type:
  - F32
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 3095
stars: 1
---

# sam2-hiera-base-plus-hf

> sam2-hiera-base-plus-hf - AI-ModelScope 在 ModelScope 开源的模型。Repository for SAM 2: Segment Anything in Images and Videos, a foundation model towards solving promptable visual segmentation in images and videos from FAIR. See the SAM 2 paper for more information.

AI-ModelScope/sam2-hiera-base-plus-hf 是 ModelScope 魔搭社区上的 80.8M 参数image-segmentation模型，采用 apache-2.0 许可。

- **Repository**: AI-ModelScope/sam2-hiera-base-plus-hf
- **License**: apache-2.0
- **Tasks**: image-segmentation
- **Parameters**: 80.8M
- **Downloads**: 3095
- **Stars**: 1
- **Last updated**: 2024-08-12

Source: https://www.modelscope.cn/models/AI-ModelScope/sam2-hiera-base-plus-hf

---

Repository for SAM 2: Segment Anything in Images and Videos, a foundation model towards solving promptable visual segmentation in images and videos from FAIR. See the [SAM 2 paper](https://arxiv.org/abs/2408.00714) for more information.


The official code is publicly release in this [repo](https://github.com/facebookresearch/segment-anything-2/).
To download the SAM 2 (Hiera-B+) checkpoint:

```
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id = "facebook/sam2-hiera-base-plus", filename="sam2_hiera_base_plus.pt", local_dir = "./")
```

### Citation

To cite the paper, model, or software, please use the below:
```
@article{ravi2024sam2,
  title={SAM 2: Segment Anything in Images and Videos},
  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},
  journal={arXiv preprint arXiv:2408.00714},
  url={https://arxiv.org/abs/2408.00714},
  year={2024}
}
```
