API 参考 detrium.nn.distill.dinov3_teacher detrium.nn.distill.dinov3_teacher RT-DETRv4: Painlessly Furthering Real-Time Object Detection with Vision Foundation Models
Copyright (c) 2025 The RT-DETRv4 Authors. All Rights Reserved.
class DINOv3TeacherModel(nn.Module)名称 类型 默认值 dinov3_repo_pathstr—dinov3_weights_pathstr—dinov3_model_typestr'dinov3_vitb16'patch_sizeint16mean—(0.485, 0.456, 0.406)std—(0.229, 0.224, 0.225)
solidify_amp_dtype(self, amp_dtype: torch.dtype=torch.float16)Convert frozen ViT weights to FP16/BF16 while preserving FP32 RoPE angle periods.
名称 类型 默认值 amp_dtypetorch.dtypetorch.float16
forward(self, images: torch.Tensor)名称 类型 默认值 imagestorch.Tensor—