detrium.nn.distill.dinov2_teacher

RT-DETRv4: Painlessly Furthering Real-Time Object Detection with Vision Foundation Models Copyright (c) 2025 The RT-DETRv4 Authors. All Rights Reserved.

class DINOv2TeacherModel(nn.Module)

DINOv2 (ViT-L/14 w/ Reg) Teacher Model. - Loads model from a local torch.hub repo. - Dynamically resizes input images so that the output patch grid matches the student's target feature map grid.

名称类型默认值
dinov2_repo_pathstr—
model_namestr'dinov2_vitl14_reg'
weights_pathstrNone
patch_sizeint14
target_downsample_factorint32
mean—(0.485, 0.456, 0.406)
std—(0.229, 0.224, 0.225)