单目3D初始代码

This commit is contained in:
zhao.zhu
2026-06-24 09:35:46 +08:00
commit 04a5895b6b
1153 changed files with 340700 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
description: Explore the ultralytics.models.sam.sam3.decoder module, including transformer decoder layers used in SAM3 model heads.
keywords: Ultralytics, SAM3, SAM, transformer decoder, attention, segmentation, deep learning, Python
---
# Reference for `ultralytics/models/sam/sam3/decoder.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/decoder.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/decoder.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.decoder.TransformerDecoderLayer
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.decoder.TransformerDecoder
<br><br>

View File

@@ -0,0 +1,28 @@
---
description: Explore the ultralytics.models.sam.sam3.encoder module, including transformer encoder layers and fusion blocks for SAM3.
keywords: Ultralytics, SAM3, SAM, transformer encoder, fusion, attention, deep learning, Python
---
# Reference for `ultralytics/models/sam/sam3/encoder.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/encoder.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/encoder.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.encoder.TransformerEncoderLayer
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.encoder.TransformerEncoder
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.encoder.TransformerEncoderFusion
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.encoder.pool_text_feat
<br><br>

View File

@@ -0,0 +1,28 @@
---
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>

View File

@@ -0,0 +1,32 @@
---
description: Explore the ultralytics.models.sam.sam3.maskformer_segmentation module for segmentation heads and predictors used with SAM3.
keywords: Ultralytics, SAM3, MaskFormer, segmentation head, mask prediction, deep learning, Python, API reference
---
# Reference for `ultralytics/models/sam/sam3/maskformer_segmentation.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/maskformer_segmentation.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/maskformer_segmentation.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.maskformer_segmentation.LinearPresenceHead
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.maskformer_segmentation.MaskPredictor
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.maskformer_segmentation.SegmentationHead
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.maskformer_segmentation.PixelDecoder
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.maskformer_segmentation.UniversalSegmentationHead
<br><br>

View File

@@ -0,0 +1,32 @@
---
description: Explore the ultralytics.models.sam.sam3.model_misc module with helper layers and utilities used in SAM3 model components.
keywords: Ultralytics, SAM3, SAM, transformer, layers, utilities, deep learning, Python
---
# Reference for `ultralytics/models/sam/sam3/model_misc.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/model_misc.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/model_misc.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.model_misc.DotProductScoring
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.model_misc.LayerScale
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.model_misc.TransformerWrapper
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.model_misc.get_valid_ratio
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.model_misc.gen_sineembed_for_position
<br><br>

View File

@@ -0,0 +1,16 @@
---
description: Explore the ultralytics.models.sam.sam3.necks module for SAM3 neck components that connect vision backbones to downstream heads.
keywords: Ultralytics, SAM3, SAM, neck, backbone, ViTDet, segmentation, Python
---
# Reference for `ultralytics/models/sam/sam3/necks.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/necks.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/necks.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.necks.Sam3DualViTDetNeck
<br><br>

View File

@@ -0,0 +1,20 @@
---
description: Explore the ultralytics.models.sam.sam3.sam3_image module, including the SAM3SemanticModel and related output helpers.
keywords: Ultralytics, SAM3, SAM, image segmentation, semantic segmentation, model, Python, API reference
---
# Reference for `ultralytics/models/sam/sam3/sam3_image.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/sam3_image.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/sam3_image.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.sam3_image.SAM3SemanticModel
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.sam3_image._update_out
<br><br>

View File

@@ -0,0 +1,32 @@
---
description: Explore the ultralytics.models.sam.sam3.text_encoder_ve module for SAM3 text-encoder components used in vision-language pipelines.
keywords: Ultralytics, SAM3, SAM, text encoder, vision-language, transformer, tokenizer, Python
---
# Reference for `ultralytics/models/sam/sam3/text_encoder_ve.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/text_encoder_ve.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/text_encoder_ve.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.text_encoder_ve.ResidualAttentionBlock
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.text_encoder_ve.Transformer
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.text_encoder_ve.TextTransformer
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.text_encoder_ve.VETextEncoder
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.text_encoder_ve.text_global_pool
<br><br>

View File

@@ -0,0 +1,24 @@
---
description: Explore the ultralytics.models.sam.sam3.vitdet module for ViTDet building blocks used as vision backbones in SAM3.
keywords: Ultralytics, SAM3, ViTDet, vision transformer, backbone, attention, deep learning, Python
---
# Reference for `ultralytics/models/sam/sam3/vitdet.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/vitdet.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/vitdet.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.vitdet.Attention
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.vitdet.Block
<br><br><hr><br>
## ::: ultralytics.models.sam.sam3.vitdet.ViT
<br><br>

View File

@@ -0,0 +1,16 @@
---
description: Explore the ultralytics.models.sam.sam3.vl_combiner module for combining vision and language features in SAM3.
keywords: Ultralytics, SAM3, vision-language, backbone, feature fusion, transformer, deep learning, Python
---
# Reference for `ultralytics/models/sam/sam3/vl_combiner.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/vl_combiner.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/sam/sam3/vl_combiner.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.vl_combiner.SAM3VLBackbone
<br><br>