---
description: Explore the ultralytics.models.sam.build_sam3 module for building SAM3 image models, including backbone and transformer components.
keywords: Ultralytics, SAM3, SAM, segmentation, transformer, ViTDet, model builder, Python
---

# Reference for `ultralytics/models/sam/build_sam3.py`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/build_sam3.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/build_sam3.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing/) — thank you! 🙏

<br>

## ::: ultralytics.models.sam.build_sam3._create_vision_backbone

<br><br><hr><br>

## ::: ultralytics.models.sam.build_sam3._create_sam3_transformer

<br><br><hr><br>

## ::: ultralytics.models.sam.build_sam3.build_sam3_image_model

<br><br><hr><br>

## ::: ultralytics.models.sam.build_sam3.build_interactive_sam3

<br><br><hr><br>

## ::: ultralytics.models.sam.build_sam3._load_checkpoint

<br><br>
