---
description: Explore the ultralytics.models.sam.sam3.geometry_encoders module for prompt and geometry encoding utilities used by SAM3.
keywords: Ultralytics, SAM3, SAM, prompt encoder, geometry encoder, padding, embeddings, Python
---

# Reference for `ultralytics/models/sam/sam3/geometry_encoders.py`

!!! success "Improvements"

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

<br>

## ::: ultralytics.models.sam.sam3.geometry_encoders.Prompt

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

## ::: ultralytics.models.sam.sam3.geometry_encoders.SequenceGeometryEncoder

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

## ::: ultralytics.models.sam.sam3.geometry_encoders.is_right_padded

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

## ::: ultralytics.models.sam.sam3.geometry_encoders.concat_padded_sequences

<br><br>
