xiaomoguhzz commited on
Commit
ebcb007
·
verified ·
1 Parent(s): 4b47184

Upload code/scripts/openai_declip+/dist_DeCLIP+_openai_vitb16_coco.sh with huggingface_hub

Browse files
code/scripts/openai_declip+/dist_DeCLIP+_openai_vitb16_coco.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data_root=/opt/tiger/xiaomoguhzz/standard_coco
2
+ exp_name=OPENAI-B_DINOv2-B_csa_560_declip+_0.25_1.0_0.3
3
+ vfm_type=dinov2-B # {sam-B, sam-L, dinov2-B, dinov2-L, dino-B-8, dino-B-16}
4
+ dataset_type=proposals_distill # {proposals_distill,grid_distill,dift_grid_distill,dift_proposals_distill}
5
+ version=declip2 # {declip,declip2,declip+}
6
+ # always keep total batchsize=16 , otherwise, Linear scaling the learning rate
7
+ CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --nproc_per_node 4 --master_port 29500 -m training.main --batch-size=4 --lr=1e-5 --wd=0.1 --epochs=6 --workers=4 \
8
+ --model ViT-B-16 --pretrained openai --warmup 1000 --zeroshot-frequency 6 --dataset-type ${dataset_type} \
9
+ --test-type coco_panoptic --train-data ${data_root}/annotations/instances_train2017.json \
10
+ --val-data ${data_root}/annotations/panoptic_val2017.json \
11
+ --embed-path metadata/coco_panoptic_clip_hand_craft_ViTB16.npy --train-image-root ${data_root}/train2017 \
12
+ --val-image-root ${data_root}/val2017 --log-every-n-steps 100 \
13
+ --lock-image --save-frequency 1 --lock-image-unlocked-groups 12 \
14
+ --name ${exp_name} --downsample-factor 16 --det-image-size 560 --val-segm-root ${data_root}/annotations/panoptic_val2017 \
15
+ --alpha 0.7 --mode csa_vfm_distill --use_vfm ${vfm_type} --loss_context_weight 0.05 --loss_content_weight 2.0 --loss_region_weight 1.0 --skip-first-eval --repa_layer_idx -1 --sd-refine-weight 1.0 --cache-self-attn sd_self_attn_cache/sd_self_attn_coco.h5 --version ${version} --resume logs/OPENAI-B_DINOv2-B_csa_560_declip+_0.25_1.0_0.3/checkpoints/epoch_6.pt --eval