-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
26 lines (18 loc) · 1.2 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
#!/usr/bin/env bash
gpu_id=0 # Set GPU ID.
# Run experiments on PACS dataset for the single labeled domain generalization (SLDG) task.
for data in 0 1 2 3; do # Let target_data = 0(Ar), 1(Ca), 2(Ph), 3(Sk).
python main.py --gpu_id ${gpu_id} --step 10 --d_name pacs --t_da_i ${data} > pacs-SLDG-${data}.txt;
done
# Run experiments on Office-Home dataset for the single labeled domain generalization (SLDG) task.
for data in 0 1 2 3; do # Let target_data = 0(Ar), 1(Cl), 2(Pr), 3(Rw).
python main.py --gpu_id ${gpu_id} --step 15 --max_epoch 30 --d_name office-home --t_da_i ${data} > office-home-SLDG-${data}.txt;
done
# Run experiments on PACS dataset for the conventional domain generalization (CDG) task.
for data in 0 1 2 3; do # Let target_data = 0(Ar), 1(Ca), 2(Ph), 3(Sk).
python main.py --gpu_id ${gpu_id} --step 10 --d_name pacs --t_da_i ${data} --pseudo 0 > pacs-DG-${data}.txt;
done
# Run experiments on Office-Home dataset for the conventional domain generalization (CDG) task.
for data in 0 1 2 3; do # Let target_data = 0(Ar), 1(Cl), 2(Pr), 3(Rw).
python main.py --gpu_id ${gpu_id} --step 15 --max_epoch 30 --d_name office-home --t_da_i ${data} --pseudo 0 > office-home-DG-${data}.txt;
done