-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdual-hrnet.yaml
119 lines (100 loc) · 2.05 KB
/
dual-hrnet.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
OUTPUT_DIR: ''
LOG_DIR: ''
GPUS: [0,]
WORKERS: 4
PRINT_FREQ: 20
AUTO_RESUME: False
PIN_MEMORY: True
RANK: 0
# Cudnn related params
CUDNN:
BENCHMARK: True
DETERMINISTIC: False
ENABLED: True
# common params for NETWORK
MODEL:
NAME: 'dual-hrnet'
PRETRAINED: './Checkpoints/HRNet/hrnetv2_w32_imagenet_pretrained.pth'
USE_FPN: False
IS_DISASTER_PRED: False
IS_SPLIT_LOSS: True
FUSE_CONV_K_SIZE: 1
# high_resoluton_net related params for segmentation
EXTRA:
PRETRAINED_LAYERS: ['*']
STEM_INPLANES: 64
FINAL_CONV_KERNEL: 1
WITH_HEAD: True
STAGE1:
NUM_MODULES: 1
NUM_BRANCHES: 1
NUM_BLOCKS: [4]
NUM_CHANNELS: [64]
BLOCK: 'BOTTLENECK'
FUSE_METHOD: 'SUM'
STAGE2:
NUM_MODULES: 1
NUM_BRANCHES: 2
NUM_BLOCKS: [4, 4]
NUM_CHANNELS: [32, 64]
BLOCK: 'BASIC'
FUSE_METHOD: 'SUM'
STAGE3:
NUM_MODULES: 4
NUM_BRANCHES: 3
NUM_BLOCKS: [4, 4, 4]
NUM_CHANNELS: [32, 64, 128]
BLOCK: 'BASIC'
FUSE_METHOD: 'SUM'
STAGE4:
NUM_MODULES: 3
NUM_BRANCHES: 4
NUM_BLOCKS: [4, 4, 4, 4]
NUM_CHANNELS: [32, 64, 128, 256]
BLOCK: 'BASIC'
FUSE_METHOD: 'SUM'
#_C.MODEL.EXTRA= CN(new_allowed=True)
LOSS:
CLASS_BALANCE: True
# DATASET related params
DATASET:
NUM_CLASSES: 4
# training
TRAIN:
# Augmentation
FLIP: True
MULTI_SCALE: [0.8, 1.2]
CROP_SIZE: [512, 512]
LR_FACTOR: 0.1
LR_STEP: [90, 110]
LR: 0.05
EXTRA_LR: 0.001
OPTIMIZER: 'sgd'
MOMENTUM: 0.9
WD: 0.0001
NESTEROV: False
IGNORE_LABEL: -1
NUM_EPOCHS: 500
RESUME: False
BATCH_SIZE_PER_GPU: 16
SHUFFLE: True
# only using some training samples
NUM_SAMPLES: 0
CLASS_WEIGHTS: [0.4, 1.2, 1.2, 1.2]
# testing
TEST:
BATCH_SIZE_PER_GPU: 32
# only testing some samples
NUM_SAMPLES: 0
MODEL_FILE: ''
FLIP_TEST: False
MULTI_SCALE: False
CENTER_CROP_TEST: False
SCALE_LIST: [1]
# debug
DEBUG:
DEBUG: False
SAVE_BATCH_IMAGES_GT: False
SAVE_BATCH_IMAGES_PRED: False
SAVE_HEATMAPS_GT: False
SAVE_HEATMAPS_PRED: False