-
Notifications
You must be signed in to change notification settings - Fork 10
/
vaihingen_train.sh
53 lines (42 loc) · 2.14 KB
/
vaihingen_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
# Multitask: depth and semantics
export PYTHONWARNINGS="ignore"
export CUDA_VISIBLE_DEVICES=$1
# dataset="nyu_795_1225x919_gaussian_bmvc"
# dataset="nyu_795_1225x919"
dataset='Vaihingen'
dataset_name='vaihingen'
max_d=1.0
dfc_preprocessing=3
outputs_nc='1 7'
# Training
begin=1
step=10
end=21
d_lr=0.0002
g_lr=0.0002
batch_size=4
imageSize=320
# Network
net_architecture="D3net_multitask"
d_block_type='basic'
# Visualization
port=$2
display_id=$3
val_freq=2000000 # 5000
weightDecay=0
init_method="normal"
scale=1.0
alpha=0.5 # weight of regression
tasks='depth semantics'
# mtl_method='mgda_approx'
# mtl_method='mgda'
mtl_method=$4 #'eweights'
model="multitask" # multitask, regression, semantics
tasks='depth semantics' # semantics, depth
outputs_nc='1 7'
# when realizing tests
#batch_size=1
name=$mtl_method"_"$model"_"$dataset_name"_"$netG"_DA_TTFFT_320x320__mb"$batch_size"_prep"$dfc_preprocessing'_noskips'
python ./main_raster.py --name $name --dataroot ./datasets/ISPRS/$dataset --dataset_name $dataset_name --mtl_method $mtl_method --batchSize $batch_size --imageSize $imageSize --nEpochs $end --save_checkpoint_freq $step --model $model --display_id $display_id --port $port --net_architecture $net_architecture --val_freq $val_freq --val_split val --use_resize --use_dropout --pretrained --data_augmentation t t f f t --max_distance $max_d --scale_to_mm $scale --train --tasks $tasks --alpha $alpha --outputs_nc $outputs_nc --dfc_preprocessing $dfc_preprocessing #--use_skips
# name=$mtl_method"_"$model"_"$dataset_name"_"$netG"_DA_TTFFT_320x320__mb"$batch_size"_prep"$dfc_preprocessing'_skips'
# python ./main_raster.py --name $name --dataroot ./datasets/ISPRS/$dataset --dataset_name $dataset_name --mtl_method $mtl_method --batchSize $batch_size --imageSize $imageSize --nEpochs $end --save_checkpoint_freq $step --model $model --display_id $display_id --port $port --net_architecture $net_architecture --val_freq $val_freq --val_split val --use_resize --use_dropout --pretrained --data_augmentation t t f f t --max_distance $max_d --scale_to_mm $scale --train --tasks $tasks --alpha $alpha --outputs_nc $outputs_nc --dfc_preprocessing $dfc_preprocessing --use_skips