--- description: Explore the Attention and TwoWayTransformer modules in Ultralytics YOLO documentation. Learn how to integrate them in your project efficiently. keywords: Ultralytics YOLO, Attention module, TwoWayTransformer module, Object Detection, Deep Learning --- ## TwoWayTransformer --- ### ::: ultralytics.vit.sam.modules.transformer.TwoWayTransformer

## TwoWayAttentionBlock --- ### ::: ultralytics.vit.sam.modules.transformer.TwoWayAttentionBlock

## Attention --- ### ::: ultralytics.vit.sam.modules.transformer.Attention