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.5 KiB

description keywords
Discover detailed information on ImageEncoderViT, PositionEmbeddingRandom, Attention, window_partition, get_rel_pos and more in Ultralytics models encoders documentation. Ultralytics, Encoders, Modules, Documentation, ImageEncoderViT, PositionEmbeddingRandom, Attention, window_partition, get_rel_pos

Reference for ultralytics/models/sam/modules/encoders.py

!!! note

Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/encoders.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/modules/encoders.py). Help us fix any issues you see by submitting a [Pull Request](/help/contributing/) 🛠️. Thank you 🙏!

::: ultralytics.models.sam.modules.encoders.ImageEncoderViT




::: ultralytics.models.sam.modules.encoders.PromptEncoder




::: ultralytics.models.sam.modules.encoders.PositionEmbeddingRandom




::: ultralytics.models.sam.modules.encoders.Block




::: ultralytics.models.sam.modules.encoders.Attention




::: ultralytics.models.sam.modules.encoders.PatchEmbed




::: ultralytics.models.sam.modules.encoders.window_partition




::: ultralytics.models.sam.modules.encoders.window_unpartition




::: ultralytics.models.sam.modules.encoders.get_rel_pos




::: ultralytics.models.sam.modules.encoders.add_decomposed_rel_pos