-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
questionFurther information is requestedFurther information is requested
Description
My idea is to use only the pretrained weights of the DINOv3 backbone, without loading the pretrained weights of the entire model. Below is my configuration, but it seems that the DINOv3 pretrained weights are not taking effect. How should I configure this correctly?
lightly_train.train_object_detection(
overwrite=True,
devices='auto',
batch_size=batch_size, # 增加批量大小以提高训练稳定性
out=exp_path, # 新的输出目录,避免覆盖之前的结果
model="dinov3/vitt16-ltdetr-coco",#"weights/dinov3_convnext_base_ltdetr_coco_251113_a310a474.pt", # 指定用哪个模型把对应的路径下载放到weights下
model_args={
"backbone_weights": "./weights/dinov3_vitl16_pretrain_sat493m-eadcf0ff.pth"
},
checkpoint=pretrained_weight_path,
data={
"path": "./",
"train": train_img_path,
"val": val_img_path,
"names": classes,
},
transform_args={
"image_size": (768, 768),
"val": { # Override validation parameters
"image_size": (768, 768), # (height, width)
}
},
steps=steps, # Small number of steps for demonstration, default is 90_000.
)Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested