-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_all.sh
42 lines (37 loc) · 2.37 KB
/
train_all.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
#!/usr/bin/env bash
# USER PARAMETERS (put your device configuration params here)
DEVICE=0
TRAIN_DIR=../data/pristine_images/train_patches # path to training patches (YOUR PATH MAY BE DIFFERENT IF YOU SAVED THE SPLITS IN ANOTHER FOLDER, CHECK IT)
VAL_DIR=../data/pristine_images/val_patches # path to training patches (YOUR PATH MAY BE DIFFERENT IF YOU SAVED THE SPLITS IN ANOTHER FOLDER, CHECK IT)
echo ""
echo "-------------------------------------------------"
echo "| Train with MinPMax 99th percentile threshold |"
echo "-------------------------------------------------"
python ../train.py --gpu $DEVICE --batch_size 10 --num_iteration 128 --learning_rate 0.0001 \
--epochs 500 --train_dir $TRAIN_DIR --val_dir $VAL_DIR --num_tiles_peracq 200 --batch_num_num_tiles_peracq 10 \
--batch_num_pos_pertile 6 --scaler_type 99th_percentile --mean_robust_scaling --input_fp_channels 3 \
--output_fp_channels 3
echo ""
echo "-------------------------------------------------"
echo "| Train with MinPMax 95th percentile threshold |"
echo "-------------------------------------------------"
python ../train.py --gpu $DEVICE --batch_size 10 --num_iteration 128 --learning_rate 0.0001 \
--epochs 500 --train_dir $TRAIN_DIR --val_dir $VAL_DIR --num_tiles_peracq 200 --batch_num_num_tiles_peracq 10 \
--batch_num_pos_pertile 6 --scaler_type 95th_percentile --mean_robust_scaling --input_fp_channels 3 \
--output_fp_channels 3
echo ""
echo "-------------------------------------------------"
echo "| Train with MaxAbs scaling |"
echo "-------------------------------------------------"
python ../train.py --gpu $DEVICE --batch_size 10 --num_iteration 128 --learning_rate 0.0001 \
--epochs 500 --train_dir $TRAIN_DIR --val_dir $VAL_DIR --num_tiles_peracq 200 --batch_num_num_tiles_peracq 10 \
--batch_num_pos_pertile 6 --scaler_type sat_tiles_scaler --input_norm max_scaling --input_fp_channels 3 \
--output_fp_channels 3
echo ""
echo "-------------------------------------------------"
echo "| Train with HistogramEqualization scaling |"
echo "-------------------------------------------------"
python ../train.py --gpu $DEVICE --batch_size 10 --num_iteration 128 --learning_rate 0.0001 \
--epochs 500 --train_dir $TRAIN_DIR --val_dir $VAL_DIR --num_tiles_peracq 200 --batch_num_num_tiles_peracq 10 \
--batch_num_pos_pertile 6 --scaler_type sat_tiles_scaler --input_norm uniform_scaling --input_fp_channels 3 \
--output_fp_channels 3