forked from PaddlePaddle/PaddleSeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto_nue_auto_label.yml
executable file
·74 lines (67 loc) · 1.47 KB
/
auto_nue_auto_label.yml
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
batch_size: 1
iters: 80000
model:
type: MscaleOCRNet
pretrained: pretrain/pretrained.pdparams
n_scales: [1.0]
backbone:
type: HRNet_W48_NV
num_classes: 26
backbone_indices: [0]
train_dataset:
type: AutoNueAutolabel
dataset_root: data/IDD_Segmentation
transforms:
- type: Resize
target_size: [1920, 1080]
- type: ResizeStepScaling
min_scale_factor: 0.5
max_scale_factor: 2.0
scale_step_size: 0
- type: RandomPaddingCrop
crop_size: [1920, 1080]
- type: RandomHorizontalFlip
- type: RandomDistort
brightness_range: 0.25
brightness_prob: 1
contrast_range: 0.25
contrast_prob: 1
saturation_range: 0.25
saturation_prob: 1
hue_range: 63
hue_prob: 1
- type: Normalize
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
mode: train
val_dataset:
type: AutoNueAutolabel
dataset_root: data/IDD_Segmentation
transforms:
- type: Resize
target_size: [1920, 1080]
- type: Normalize
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
mode: val
optimizer:
type: sgd
momentum: 0.9
weight_decay: 0.0001
learning_rate:
value: 0.02
decay:
type: poly
power: 2
end_lr: 0.0
loss:
types:
- type: DiceLoss
- type: DiceLoss
- type: BootstrappedCrossEntropyLoss
min_K: 50000
loss_th: 0.05
- type: BootstrappedCrossEntropyLoss
min_K: 50000
loss_th: 0.05
coef: [0.4, 0.16, 1.0, 0.4]