-
Notifications
You must be signed in to change notification settings - Fork 0
/
zipper_multiple_train.sh
58 lines (50 loc) · 2.05 KB
/
zipper_multiple_train.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
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
MASK_LIST=(
"0,0,0,0,0,0,0,0,0,0,0,0,0,0"
"0,1,0,0,0,0,0,0,0,0,0,0,0,0"
"0,1,1,0,0,0,0,0,0,0,0,0,0,0"
"0,1,1,1,0,0,0,0,0,0,0,0,0,0"
"0,1,1,1,1,0,0,0,0,0,0,0,0,0"
"0,1,1,1,1,1,0,0,0,0,0,0,0,0"
"0,1,1,1,1,1,1,0,0,0,0,0,0,0"
"0,1,1,1,1,1,1,1,0,0,0,0,0,0"
"0,1,1,1,1,1,1,1,1,0,0,0,0,0"
"0,1,1,1,1,1,1,1,1,1,0,0,0,0"
"0,1,1,1,1,1,1,1,1,1,1,0,0,0"
"0,1,1,1,1,1,1,1,1,1,1,1,0,0"
"0,1,1,1,1,1,1,1,1,1,1,1,1,0"
"0,1,1,1,1,1,1,1,1,1,1,1,1,1"
)
for i in $(seq 1 13); do
echo "Mutiple Task Train Layer:"$i
python mutiple_task_train.py \
--dataset_dir_A=./datasets/cubs_cropped \
--dataset_dir_B=./datasets/flowers_102 \
--train_dir=./checkpoints/multiple_cubs_cropped_flowers_102/$i \
--dataset_name_A=cubs_cropped \
--dataset_name_B=flowers_102 \
--dataset_split_name_A=train \
--dataset_split_name_B=train \
--number_of_steps=4000 \
--gpu_memory_fraction=0.7 \
--model_name=mobilenet_v1 \
--merged_model_scope=MobilenetV1_M \
--model_scope_A_teacher=MobilenetV1_cubs_cropped \
--model_scope_B_teacher=MobilenetV1_flowers_102 \
--checkpoint_model_scope_A=MobilenetV1_cubs_cropped \
--checkpoint_model_scope_B=MobilenetV1_flowers_102 \
--checkpoint_path_A=./hungarian_algorithm/merged_ckpt/cubs_cropped_and_flowers_102/cubs_cropped/$i \
--checkpoint_path_B=./hungarian_algorithm/merged_ckpt/cubs_cropped_and_flowers_102/flowers_102/$i \
--checkpoint_path_A_teacher=./checkpoints/cubs_cropped \
--checkpoint_path_B_teacher=./checkpoints/flowers_102 \
--preprocessing_name=inception_preprocessing \
--conv2d_0_scope_A=Conv2d_0_cubs_cropped \
--conv2d_0_scope_B=Conv2d_0_flowers_102 \
--depthwise_scope_A=_depthwise_cubs_cropped \
--depthwise_scope_B=_depthwise_flowers_102 \
--pointwise_scope_A=_pointwise_cubs_cropped \
--pointwise_scope_B=_pointwise_flowers_102 \
--logits_scope_A=Logits_cubs_cropped \
--logits_scope_B=Logits_flowers_102 \
--pointwise_merged_mask=${MASK_LIST[$i]} \
--ignore_missing_vars=False