You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1.6 KiB

description keywords
Discover detailed instructions for building various Segment Anything Model (SAM) and Segment Anything Model 2 (SAM 2) architectures with Ultralytics, including SAM ViT and Mobile-SAM. Ultralytics, SAM model, Segment Anything Model, SAM 2 model, Segment Anything Model 2, SAM ViT, Mobile-SAM, model building, deep learning, AI

Reference for ultralytics/models/sam/build.py

!!! Note

This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/build.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/build.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/models/sam/build.py) 🛠. Thank you 🙏!

::: ultralytics.models.sam.build.build_sam_vit_h





::: ultralytics.models.sam.build.build_sam_vit_l





::: ultralytics.models.sam.build.build_sam_vit_b





::: ultralytics.models.sam.build.build_mobile_sam





::: ultralytics.models.sam.build.build_sam2_t





::: ultralytics.models.sam.build.build_sam2_s





::: ultralytics.models.sam.build.build_sam2_b





::: ultralytics.models.sam.build.build_sam2_l





::: ultralytics.models.sam.build._build_sam





::: ultralytics.models.sam.build._build_sam2





::: ultralytics.models.sam.build.build_sam