-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
2020-07-20.yaml
174 lines (152 loc) · 3.79 KB
/
2020-07-20.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
---
seed: 1984
sync_bn: True
num_workers: 12
experiment_name: "2020-07-20"
train_image_path: /home/vladimir/workspace/data3/WiderFace/WIDER_train/images
val_image_path: /home/vladimir/workspace/data3/WiderFace/WIDER_val/images
train_annotation_path: /home/vladimir/workspace/data3/WiderFace/train/label.json
val_annotation_path: /home/vladimir/workspace/data3/WiderFace/val/label.json
weights: 2020-07-19/epoch=149.ckpt
num_classes: 2
model:
type: retinaface.network.RetinaFace
name: Resnet50
pretrained: True
return_layers: {"layer2": 1, "layer3": 2, "layer4": 3}
in_channels: 256
out_channels: 256
optimizer:
type: torch.optim.SGD
lr: 0.001
weight_decay: 0.0001
momentum: 0.9
trainer:
type: pytorch_lightning.Trainer
gpus: 4
use_amp: True
amp_level: O1
max_epochs: 150
distributed_backend: ddp
num_sanity_val_steps: 1
progress_bar_refresh_rate: 1
benchmark: True
precision: 16
sync_batchnorm: True
scheduler:
type: torch.optim.lr_scheduler.CosineAnnealingWarmRestarts
T_0: 10
T_mult: 2
train_parameters:
batch_size: 8
rotate90: True
checkpoint_callback:
type: pytorch_lightning.callbacks.ModelCheckpoint
filepath: "2020-07-20"
monitor: val_loss
verbose: True
mode: max
save_top_k: -1
val_parameters:
batch_size: 10
iou_threshold: 0.4
rotate90: True
loss:
type: retinaface.multibox_loss.MultiBoxLoss
num_classes: 2
overlap_thresh: 0.35
prior_for_matching: True
bkg_label: 0
neg_mining: True
neg_pos: 7
neg_overlap: 0.35
encode_target: False
prior_box:
type: retinaface.prior_box.priorbox
min_sizes: [[16, 32], [64, 128], [256, 512]]
steps: [8, 16, 32]
clip: False
image_size: [840, 840]
loss_weights:
localization: 2
classification: 1
landmarks: 1
test_parameters:
variance: [0.1, 0.2]
train_aug:
transform:
__class_fullname__: albumentations.core.composition.Compose
bbox_params: null
keypoint_params: null
p: 1
transforms:
- __class_fullname__: albumentations.augmentations.transforms.RandomBrightnessContrast
always_apply: false
brightness_limit: 0.2
contrast_limit: [0.5, 1.5]
p: 0.5
- __class_fullname__: albumentations.augmentations.transforms.HueSaturationValue
hue_shift_limit: 20
val_shift_limit: 0
p: 0.5
- __class_fullname__: albumentations.augmentations.transforms.RandomGamma
gamma_limit: [80, 120]
p: 0.5
- __class_fullname__: albumentations.augmentations.transforms.Resize
height: 840
width: 840
p: 1
- __class_fullname__: albumentations.augmentations.transforms.Normalize
always_apply: false
max_pixel_value: 255.0
mean:
- 0.485
- 0.456
- 0.406
p: 1
std:
- 0.229
- 0.224
- 0.225
val_aug:
transform:
__class_fullname__: albumentations.core.composition.Compose
bbox_params: null
keypoint_params: null
p: 1
transforms:
- __class_fullname__: albumentations.augmentations.transforms.Resize
height: 840
width: 840
p: 1
- __class_fullname__: albumentations.augmentations.transforms.Normalize
always_apply: false
max_pixel_value: 255.0
mean:
- 0.485
- 0.456
- 0.406
p: 1
std:
- 0.229
- 0.224
- 0.225
test_aug:
transform:
__class_fullname__: albumentations.core.composition.Compose
bbox_params: null
keypoint_params: null
p: 1
transforms:
- __class_fullname__: albumentations.augmentations.transforms.Normalize
always_apply: false
max_pixel_value: 255.0
mean:
- 0.485
- 0.456
- 0.406
p: 1
std:
- 0.229
- 0.224
- 0.225