File size: 1,346 Bytes
c50dde6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Integrated Distillation 消融实验:OpenAI-CLIP-L/14 单卡调试

data_root=/opt/tiger/xiaomoguhzz/standard_coco
exp_name=Debug_Integrated_OpenAI-L_DINOv2-L_336
vfm_type=dinov2-L
dataset_type=grid_distill
version=integrated
mode=vanilla

CUDA_VISIBLE_DEVICES=0 python -m training.main \
    --batch-size=2 \
    --lr=1e-5 \
    --wd=0.1 \
    --epochs=1 \
    --workers=4 \
    --model ViT-L-14 \
    --pretrained openai \
    --warmup 100 \
    --zeroshot-frequency 1 \
    --dataset-type ${dataset_type} \
    --test-type coco_panoptic \
    --train-data ${data_root}/annotations/instances_train2017.json \
    --val-data ${data_root}/annotations/panoptic_val2017.json \
    --embed-path metadata/coco_panoptic_clip_hand_craft_ViTL14.npy \
    --train-image-root ${data_root}/train2017 \
    --val-image-root ${data_root}/val2017 \
    --log-every-n-steps 10 \
    --lock-image \
    --save-frequency 1 \
    --lock-image-unlocked-groups 24 \
    --name ${exp_name} \
    --downsample-factor 14 \
    --det-image-size 336 \
    --val-segm-root ${data_root}/annotations/panoptic_val2017 \
    --alpha 0.7 \
    --mode ${mode} \
    --use_vfm ${vfm_type} \
    --loss_context_weight 1.0 \
    --loss_content_weight 1.0 \
    --loss_region_weight 0.05 \
    --skip-first-eval \
    --repa_layer_idx -1 \
    --version ${version}