-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzero_shot.sh
27 lines (20 loc) · 958 Bytes
/
zero_shot.sh
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
#!/bin/bash
few_shots=(0)
for few_num in "${!few_shots[@]}";do
## train on the VisA dataset
base_dir=winclip_mvtec
save_dir=./exps_${base_dir}/mvtecvit_large_14_518/
CUDA_VISIBLE_DEVICES=3 python reproduce_WinCLIP.py --dataset mvtec \
--data_path /remote-home/iot_zhouqihang/data/mvdataset --save_path ./results/mvtec_${base_dir}/few_shot_${few_shots[few_num]} \
--model ViT-B-16-plus-240 --pretrained openai --k_shot ${few_shots[few_num]} --image_size 240
wait
done
for few_num in "${!few_shots[@]}";do
## train on the VisA dataset
base_dir=winclip_visa
save_dir=./exps_${base_dir}/mvtecvit_large_14_518/
CUDA_VISIBLE_DEVICES=3 python reproduce_WinCLIP.py --dataset visa \
--data_path /remote-home/iot_zhouqihang/data/Visa --save_path ./results/mvtec_${base_dir}/few_shot_${few_shots[few_num]} \
--model ViT-B-16-plus-240 --pretrained openai --k_shot ${few_shots[few_num]} --image_size 240
wait
done