-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
31 lines (18 loc) · 1.37 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
27
28
29
30
31
#!/usr/bin/env bash
# Set GPU ID.
gpu_id=0
# Run experiments on PACS dataset (ResNet-18).
python mains/exam_align.py --dataset pacs --gpu ${gpu_id} --test P --mode alpha > PACS_P.txt;
python mains/exam_align.py --dataset pacs --gpu ${gpu_id} --test A --mode alpha > PACS_A.txt;
python mains/exam_align.py --dataset pacs --gpu ${gpu_id} --test C --mode alpha > PACS_C.txt;
python mains/exam_align.py --dataset pacs --gpu ${gpu_id} --test S --mode alpha > PACS_S.txt;
# Run experiments on VLCS dataset (ResNet-18).
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test P --mode alpha > VLCS_P.txt;
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test L --mode alpha > VLCS_L.txt;
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test C --mode alpha > VLCS_C.txt;
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test S --mode alpha > VLCS_S.txt;
# Run experiments on VLCS dataset (AlextNet).
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test P --mode alpha --net alexnet > VLCS_alex_P.txt;
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test L --mode alpha --net alexnet > VLCS_alex_L.txt;
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test C --mode alpha --net alexnet > VLCS_alex_C.txt;
python mains/exam_align.py --dataset vlcs --gpu ${gpu_id} --test S --mode alpha --net alexnet > VLCS_alex_S.txt;