-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample_config.yaml
91 lines (76 loc) · 2.37 KB
/
example_config.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
meta:
root_dir: /home/phan.huy.hoang/phh_workspace/DB_text_minimal
round_number: 8
debug: False
device: cuda
test_device: cpu
hps:
batch_size: 4
test_batch_size: 1 # must be set to 1 to evaluate metric
img_size: 640
no_epochs: 100
warmup_epochs: 10
no_classes: 2
log_iter: 50
lrs:
mode: reduce # reduce / poly
warmup_iters: 10
factor: 0.2
patience: 4
augmentation:
callbacks:
data:
totaltext:
train_dir: /home/phan.huy.hoang/phh_workspace/data/totaltext/totaltext/Images/Train
test_dir: /home/phan.huy.hoang/phh_workspace/data/totaltext/totaltext/Images/Test
train_gt_dir: /home/phan.huy.hoang/phh_workspace/data/totaltext/txt_format_v2/Train
test_gt_dir: /home/phan.huy.hoang/phh_workspace/data/totaltext/txt_format_v2/Test
ignore_tags: ["#"]
ctw1500:
train_dir: /home/phan.huy.hoang/phh_workspace/data/CTW1500/ctw1500/train/text_image/
test_dir: /home/phan.huy.hoang/phh_workspace/data/CTW1500/ctw1500/test/text_image/
train_gt_dir: /home/phan.huy.hoang/phh_workspace/data/CTW1500/ctw1500/train/text_label_curve/
test_gt_dir: /home/phan.huy.hoang/phh_workspace/data/CTW1500/ctw1500/test/text_label_curve/
ignore_tags: []
icdar2015:
train_dir: /home/phan.huy.hoang/phh_workspace/data/icdar2015_/train_imgs
test_dir: /home/phan.huy.hoang/phh_workspace/data/icdar2015_/test_imgs
train_gt_dir: /home/phan.huy.hoang/phh_workspace/data/icdar2015_/train_gts
test_gt_dir: /home/phan.huy.hoang/phh_workspace/data/icdar2015_/test_gts
ignore_tags: ["###"]
msra_td500:
train_dir: /home/phan.huy.hoang/phh_workspace/data/MSRA-TD500/train
test_dir: /home/phan.huy.hoang/phh_workspace/data/MSRA-TD500/test
train_gt_dir: /home/phan.huy.hoang/phh_workspace/data/MSRA-TD500/train
test_gt_dir: /home/phan.huy.hoang/phh_workspace/data/MSRA-TD500/test
ignore_tags: []
dataset:
name: totaltext
return_dict: True
logging:
logger_file: train.log
loss:
model:
finetune_cp_path:
best_cp_path: models/best_cp_0107.pth
last_cp_path: models/last_cp_0107.pth
best_hmean_cp_path: models/best_hmean_0107.pth
optimizer:
type: adam
lr: 0.005
lr_finetune: 0.001
weight_decay: 0.0
reduction: mean
alpha: 1
beta: 10
negative_ratio: 3
amsgrad: False
metric:
thred_text_score: 0.25
prob_threshold: 0.50
unclip_ratio: 1.50
is_output_polygon: True
private:
scheduler:
trainer:
training: