forked from mil-tokyo/dg_mmld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
general.sh
42 lines (40 loc) · 1.04 KB
/
general.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
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
domain=("photo" "art" "cartoon" "sketch")
times=5
for i in `seq 1 $times`
do
max=$((${#domain[@]}-1))
for j in `seq 0 $max`
do
dir_name="PACS/default/${domain[j]}${i}"
echo $dir_name
python ../main/main.py \
--data-root='/data/unagi0/matsuura/PACS/raw_images/kfold/' \
--save-root='/data/unagi0/matsuura/result/dg_mmld/' \
--result-dir=$dir_name \
--train='general' \
--data='PACS' \
--model='caffenet' \
--clustering \
--clustering-method='Kmeans' \
--num-clustering=3 \
--clustering-step=1 \
--entropy='default' \
--exp-num=$j \
--gpu=0 \
--num-epoch=30 \
--scheduler='step' \
--lr=1e-3 \
--lr-step=24 \
--lr-decay-gamma=0.1 \
--nesterov \
--fc-weight=10.0 \
--disc-weight=10.0 \
--entropy-weight=1.0 \
--grl-weight=1.0 \
--loss-disc-weight \
--color-jitter \
--min-scale=0.8 \
--instance-stat
done
done