forked from Lllllolita/CAN_Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
94 lines (76 loc) · 1.75 KB
/
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
92
93
94
# 实验名称
experiment: "CAN"
# 随机种子
seed: 20211024
# 训练参数
epochs: 240
batch_size: 8
workers: 0
train_parts: 1
valid_parts: 1
valid_start: 0
save_start: 0
#optimizer: Adadelta
#optimizer: AdamW
optimizer: SGD
#optimizer: Adam
lr: 0.01
lr_decay: cosine
step_ratio: 10
step_decay: 5
eps: 1e-6
#eps: 1e-10
weight_decay: 1e-4
beta: 0.9
dropout: True
dropout_ratio: 0.5
relu: True
gradient: 100
gradient_clip: True
use_label_mask: False
outdir: 'outdir'
# 训练数据
#train_image_path: 'test_images/lite_data/lite_images.pkl'
#train_label_path: 'test_images/lite_data/lite_labels.txt'
#
#eval_image_path: 'test_images/test_data/14_test_images.pkl'
#eval_label_path: 'test_images/test_data/14_test_labels.txt'
#
#word_path: 'test_images/lite_data/words_dict.txt'
train_image_path: 'paddlevision/datasets/CROHME/train_images.pkl'
train_label_path: 'paddlevision/datasets/CROHME/train_labels.txt'
eval_image_path: 'paddlevision/datasets/CROHME/14_test_images.pkl'
eval_label_path: 'paddlevision/datasets/CROHME/14_test_labels.txt'
word_path: 'paddlevision/datasets/CROHME/words_dict.txt'
# collate_fn
collate_fn: collate_fn
word_num : 111
densenet:
ratio: 16
growthRate: 24
reduction: 0.5
bottleneck: True
use_dropout: True
encoder:
input_channel: 1
out_channel: 684
decoder:
net: AttDecoder
cell: 'GRU'
input_size: 256
hidden_size: 256
counting_decoder:
in_channel: 684
out_channel: 111
attention:
attention_dim: 512
word_conv_kernel: 1
attention_map_vis_path: 'vis/attention_map'
counting_map_vis_path: 'vis/counting_map'
whiten_type: None
max_step: 256
optimizer_save: False
finetune: False
checkpoint_dir: 'checkpoints'
checkpoint: "CAN_2022-09-12-21-24_decoder-AttDecoder_WordRate-0.9166_ExpRate-0.5172_201"
log_dir: 'logs'