-
Notifications
You must be signed in to change notification settings - Fork 5
/
run.sh
28 lines (24 loc) · 1.05 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
#!/bin/bash
gpu=0
#Adaptation under in-dataset scenarios
for setup in 0 1
do
for pair in 0,1 0,2 0,3 1,2 1,3 2,3
do
# --root_idx needs to be set as 0 for in-dataset adaptation
python3 adapt_detnet_dual.py -trs ah -tes ah --root_idx 0 --pic 1024 --resume -eid 37 --epochs 10 --start_epoch 1 --gpus ${gpu} --checkpoint in_dataset_adapt --setup ${setup} --pair ${pair}
# calculate the Mono-M and Dual-M metrics
python3 calc_metrics.py --checkpoint in_dataset_adapt/evaluation/ah --setup ${setup} --pair ${pair}
done
done
#Adaptation under cross-dataset scenarios
for setup in 0 1
do
for pair in 0,1 0,2 0,3 1,2 1,3 2,3
do
# --root_idx needs to be set as 9 for cross-dataset adaptation
python3 adapt_detnet_dual.py -trs ah -tes ah --root_idx 9 --pic 1024 --resume -eid 68 --epochs 10 --start_epoch 1 --gpus ${gpu} --checkpoint cross_dataset_adapt --setup ${setup} --pair ${pair}
# calculate the Mono-M and Dual-M metrics
python3 calc_metrics.py --checkpoint cross_dataset_adapt/evaluation/ah --setup ${setup} --pair ${pair}
done
done