-
Notifications
You must be signed in to change notification settings - Fork 6
/
run.sh
26 lines (23 loc) · 1.32 KB
/
run.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
# CUDA_VISIBLE_DEVICES=2 nohup python -m domainbed.scripts.train\
# --data_dir /data2/yifan.zhang/datasets/DGdata/ \
# --output_dir /data1/yifan.zhang/DADG/T3A/models \
# --algorithm ERM\
# --dataset PACS\
# --hparams "{\"backbone\": \"resnet50\"}" > resnet50_ERM.out 2>&1 &
# CUDA_VISIBLE_DEVICES=2 nohup python -m domainbed.scripts.train\
# --data_dir /data2/yifan.zhang/datasets/DGdata/ \
# --output_dir /data1/yifan.zhang/DADG/T3A/models \
# --algorithm ERM\
# --dataset PACS\
# --hparams "{\"backbone\": \"resnet18\"}" > resnet18_ERM.out 2>&1 &
# CUDA_VISIBLE_DEVICES=1 nohup python -m domainbed.scripts.train\
# --data_dir /data2/yifan.zhang/datasets/DGdata/ \
# --output_dir /data1/yifan.zhang/DADG/T3A/models \
# --algorithm ERM\
# --dataset PACS\
# --hparams "{\"backbone\": \"ViT-B16\"}" > ViT-B16_ERM.out 2>&1 &
nohup python sweep.py > HViT-AdaNPC.out 2>&1 &
sh scripts/launch.sh pretrain HViT 10 1 local ERM
CUDA_VISIBLE_DEVICES=3 nohup python unsupervised_adaptation.py --adapt_algorithm DRM > DRM_individual_drm.out 2>&1 &
CUDA_VISIBLE_DEVICES=2 nohup python unsupervised_adaptation.py --adapt_algorithm DRMFull > DRMFull_individual_drm.out 2>&1 &
python -m domainbed.scripts.collect_results --input_dir=sweep/DRM/ViT-B16