| data_root=/opt/tiger/xiaomoguhzz/standard_coco | |
| pretrain_ckpt=checkpoints/TinyCLIP-auto-ViT-63M-32-Text-31M-LAIONYFCC400M.pt | |
| exp_name=TinyCLIP_63M_dinov2B_csa_560_0.25_1.0 | |
| vfm_type=dinov2-B # {sam-B, sam-L, dinov2-B, dinov2-L, dino-B-8, dino-B-16} | |
| model_name=TinyCLIP-auto-ViT-63M-32-Text-31M | |
| embed_path=metadata/coco_panoptic_clip_hand_craft_TinyCLIP-auto-ViT-63M-32-Text-31M.npy | |
| # Single GPU for debugging | |
| python -m training.main --batch-size=2 --lr=1e-5 --wd=0.1 --epochs=6 --workers=4 \ | |
| --model ${model_name} --pretrained ${pretrain_ckpt} --warmup 1000 --zeroshot-frequency 1 --dataset-type grid_distill \ | |
| --test-type coco_panoptic --train-data ${data_root}/annotations/instances_train2017.json \ | |
| --val-data ${data_root}/annotations/panoptic_val2017.json \ | |
| --embed-path ${embed_path} --train-image-root ${data_root}/train2017 \ | |
| --val-image-root ${data_root}/val2017 --cache-dir ${pretrain_ckpt} --log-every-n-steps 100 \ | |
| --lock-image --save-frequency 1 --lock-image-unlocked-groups 12 \ | |
| --name ${exp_name} --downsample-factor 16 --det-image-size 560 --val-segm-root ${data_root}/annotations/panoptic_val2017 \ | |
| --alpha 0.7 --mode csa_vfm_distill --use_vfm ${vfm_type} --loss_context_weight 0.25 --loss_content_weight 1.0 --version declip |