-
Notifications
You must be signed in to change notification settings - Fork 129
/
train_image_clf_inbreast.sh
executable file
·59 lines (55 loc) · 1.54 KB
/
train_image_clf_inbreast.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
55
56
57
58
#!/bin/bash
TRAIN_DIR="INbreast/train_dat_mod/train"
VAL_DIR="INbreast/train_dat_mod/test"
TEST_DIR="INbreast/train_dat_mod/val"
# PATCH_STATE="CBIS-DDSM/Combined_patches_im1152_224_s10/vgg16_prt_best1.h5"
RESUME_FROM="CBIS-DDSM/Combined_full_ROI/1152x896_s10_prt_addtopf2_1.h5"
BEST_MODEL="INbreast/train_dat_mod/resnet_s10_512-512-1024x2_mock.h5"
FINAL_MODEL="NOSAVE"
export NUM_CPU_CORES=4
# 255/65535 = 0.003891.
python image_clf_train.py \
--no-patch-model-state \
--resume-from $RESUME_FROM \
--img-size 1152 896 \
--no-img-scale \
--rescale-factor 0.003891 \
--featurewise-center \
--featurewise-mean 44.33 \
--no-equalize-hist \
--patch-net resnet50 \
--block-type resnet \
--top-depths 512 512 \
--top-repetitions 2 2 \
--bottleneck-enlarge-factor 2 \
--no-add-heatmap \
--avg-pool-size 7 7 \
--add-conv \
--no-add-shortcut \
--hm-strides 1 1 \
--hm-pool-size 5 5 \
--fc-init-units 64 \
--fc-layers 2 \
--batch-size 4 \
--train-bs-multiplier 0.5 \
--augmentation \
--class-list neg pos \
--nb-epoch 0 \
--all-layer-epochs 50 \
--load-val-ram \
--load-train-ram \
--optimizer adam \
--weight-decay 0.001 \
--hidden-dropout 0.0 \
--weight-decay2 0.01 \
--hidden-dropout2 0.0 \
--init-learningrate 0.0001 \
--all-layer-multiplier 0.01 \
--lr-patience 2 \
--es-patience 10 \
--auto-batch-balance \
--pos-cls-weight 1.0 \
--neg-cls-weight 1.0 \
--best-model $BEST_MODEL \
--final-model $FINAL_MODEL \
$TRAIN_DIR $VAL_DIR $TEST_DIR