Compare commits
208 Commits
dygraph
...
release/2.
| Author | SHA1 | Date |
|---|---|---|
|
|
a09604f897 | 5 years ago |
|
|
39a34ac80f | 5 years ago |
|
|
cfdefbe1ba | 5 years ago |
|
|
0ee4358329 | 5 years ago |
|
|
5ea613dc4f | 5 years ago |
|
|
d3a4f78864 | 5 years ago |
|
|
0067516142 | 5 years ago |
|
|
b99f352df5 | 5 years ago |
|
|
4b1428d838 | 5 years ago |
|
|
b602397134 | 5 years ago |
|
|
523c778557 | 5 years ago |
|
|
f745eef560 | 5 years ago |
|
|
c386f01254 | 5 years ago |
|
|
6c381485c4 | 5 years ago |
|
|
8608f3463c | 5 years ago |
|
|
8647a503b1 | 5 years ago |
|
|
d5f5a38881 | 5 years ago |
|
|
881758fab5 | 5 years ago |
|
|
f56abaff7c | 5 years ago |
|
|
ece8449815 | 5 years ago |
|
|
a7937102db | 5 years ago |
|
|
4431a09c28 | 5 years ago |
|
|
ef3f72f07c | 5 years ago |
|
|
f3de116010 | 5 years ago |
|
|
15d30741bd | 5 years ago |
|
|
28c1f2497f | 5 years ago |
|
|
66a44f222a | 5 years ago |
|
|
5b0e46d341 | 5 years ago |
|
|
68dd6afaa4 | 5 years ago |
|
|
c7be8856e9 | 5 years ago |
|
|
eb1fab55f2 | 5 years ago |
|
|
f9b113649a | 5 years ago |
|
|
1cfe43c9a6 | 5 years ago |
|
|
fd5ea74b00 | 5 years ago |
|
|
f0b1032813 | 5 years ago |
|
|
cece6d201f | 5 years ago |
|
|
10b1bc78fd | 5 years ago |
|
|
978807038a | 5 years ago |
|
|
84ef96f35d | 5 years ago |
|
|
bec2f3f490 | 5 years ago |
|
|
e07e168cda | 5 years ago |
|
|
ac31a18b61 | 5 years ago |
|
|
6bd6bee58f | 5 years ago |
|
|
45111a7b46 | 5 years ago |
|
|
cbd812bc99 | 5 years ago |
|
|
f97fc1d03f | 5 years ago |
|
|
1f23c7ad2f | 5 years ago |
|
|
3a11283588 | 5 years ago |
|
|
222a821ad6 | 5 years ago |
|
|
909d9c17ff | 5 years ago |
|
|
6f794f6ff9 | 5 years ago |
|
|
342c7aedb0 | 5 years ago |
|
|
fd9d8c39d2 | 5 years ago |
|
|
76752b6084 | 5 years ago |
|
|
b0b8db0654 | 5 years ago |
|
|
dd9b456bb6 | 5 years ago |
|
|
7d31b5e1c8 | 5 years ago |
|
|
5ed055e7dd | 5 years ago |
|
|
0faa016137 | 5 years ago |
|
|
843053e2ec | 5 years ago |
|
|
cf2bd52989 | 5 years ago |
|
|
2c7c60bec2 | 5 years ago |
|
|
1886647f1d | 5 years ago |
|
|
fa32b9b184 | 5 years ago |
|
|
f1383e17a1 | 5 years ago |
|
|
152ab8f3da | 5 years ago |
|
|
c3d700fa41 | 5 years ago |
|
|
e083b9c228 | 5 years ago |
|
|
ff1b0a3621 | 5 years ago |
|
|
b61af980eb | 5 years ago |
|
|
714ca4a73e | 5 years ago |
|
|
21ad9026d3 | 5 years ago |
|
|
dcdf083203 | 5 years ago |
|
|
611c70f68c | 5 years ago |
|
|
4a7214963f | 5 years ago |
|
|
9deee44a7a | 5 years ago |
|
|
59b3921d9b | 5 years ago |
|
|
f23aa77757 | 5 years ago |
|
|
5e555a8047 | 5 years ago |
|
|
ecc408a6db | 5 years ago |
|
|
97d71f0bba | 5 years ago |
|
|
e1c44d1f2c | 5 years ago |
|
|
d91c3e7c6b | 5 years ago |
|
|
67e951d0be | 5 years ago |
|
|
d231cc3cd7 | 5 years ago |
|
|
7bffc58e89 | 5 years ago |
|
|
5fc2de704b | 5 years ago |
|
|
38303bfd02 | 5 years ago |
|
|
8045cee558 | 5 years ago |
|
|
8d3d0eb15e | 5 years ago |
|
|
b5d56d1c83 | 5 years ago |
|
|
e6a95c3a71 | 5 years ago |
|
|
c6811aa833 | 5 years ago |
|
|
364a777763 | 5 years ago |
|
|
4dfc583850 | 5 years ago |
|
|
9cc6363b0e | 5 years ago |
|
|
890546ca34 | 5 years ago |
|
|
807cd824a5 | 5 years ago |
|
|
fe6e31705f | 5 years ago |
|
|
9050c6f933 | 5 years ago |
|
|
1b1f170c7a | 5 years ago |
|
|
1599a4590f | 5 years ago |
|
|
e7187dac83 | 5 years ago |
|
|
a3afc162fa | 5 years ago |
|
|
ad15a64569 | 5 years ago |
|
|
6b73d8ed2f | 5 years ago |
|
|
647f85dfca | 5 years ago |
|
|
76f50d89e3 | 5 years ago |
|
|
4c33d20dae | 5 years ago |
|
|
36b5c0dafa | 5 years ago |
|
|
3b9c7b82bc | 5 years ago |
|
|
8e9d851563 | 5 years ago |
|
|
1d41d8903a | 5 years ago |
|
|
60effbd748 | 5 years ago |
|
|
25008de315 | 5 years ago |
|
|
a6146ffc43 | 5 years ago |
|
|
da344d539a | 5 years ago |
|
|
cdf732289d | 5 years ago |
|
|
0c75cbc55b | 5 years ago |
|
|
36dae990b8 | 5 years ago |
|
|
f6daae41e5 | 5 years ago |
|
|
f2bc513a68 | 5 years ago |
|
|
fe775780e4 | 5 years ago |
|
|
8e2dc741b3 | 5 years ago |
|
|
d4a23337cf | 5 years ago |
|
|
873363589c | 5 years ago |
|
|
f368a4b2f6 | 5 years ago |
|
|
dd6f6f5cf3 | 5 years ago |
|
|
259f3bb0e0 | 5 years ago |
|
|
dbef4a1d34 | 5 years ago |
|
|
02b0bce42d | 5 years ago |
|
|
1043613b1c | 5 years ago |
|
|
a094d27755 | 5 years ago |
|
|
080e250164 | 5 years ago |
|
|
be94977426 | 5 years ago |
|
|
a92bb6d310 | 5 years ago |
|
|
0d89f3f913 | 5 years ago |
|
|
fae6f1eef7 | 5 years ago |
|
|
550022ea66 | 5 years ago |
|
|
e7d24ac8b8 | 5 years ago |
|
|
0f4d92b63f | 5 years ago |
|
|
7a054c854b | 5 years ago |
|
|
22a9f2ad00 | 5 years ago |
|
|
b544a561d5 | 5 years ago |
|
|
0c5c9f694d | 5 years ago |
|
|
7f2304ab3f | 5 years ago |
|
|
56cbbdfb01 | 5 years ago |
|
|
f896032255 | 5 years ago |
|
|
2a0c3d4dac | 5 years ago |
|
|
e40100c5b7 | 5 years ago |
|
|
570009c217 | 5 years ago |
|
|
b8a029686c | 5 years ago |
|
|
6781d55df4 | 5 years ago |
|
|
7f9b885f75 | 5 years ago |
|
|
42fe741ff1 | 5 years ago |
|
|
b3a451da26 | 5 years ago |
|
|
f20f6d2d27 | 5 years ago |
|
|
647db30f6f | 5 years ago |
|
|
acd479ea46 | 5 years ago |
|
|
6ebbbfe46c | 5 years ago |
|
|
f6e03a51f0 | 5 years ago |
|
|
fad40158b0 | 5 years ago |
|
|
95a60fa49f | 5 years ago |
|
|
c9f745e250 | 5 years ago |
|
|
a4fa186010 | 5 years ago |
|
|
b0d1dca688 | 5 years ago |
|
|
c9f24ddaa3 | 5 years ago |
|
|
0dcab8e67f | 5 years ago |
|
|
25bf92295f | 5 years ago |
|
|
b22ee4dd5f | 5 years ago |
|
|
1d11af72ac | 5 years ago |
|
|
d5a3fb5408 | 5 years ago |
|
|
ad074432d5 | 5 years ago |
|
|
fb9727266f | 5 years ago |
|
|
b7526cc12d | 5 years ago |
|
|
4b715cf200 | 5 years ago |
|
|
4d8f7e6ce2 | 5 years ago |
|
|
cacf8f8a6c | 5 years ago |
|
|
d1e150e276 | 5 years ago |
|
|
1888ca2793 | 5 years ago |
|
|
06a434bcf9 | 5 years ago |
|
|
edeb12b1e0 | 5 years ago |
|
|
4dcf1b2227 | 5 years ago |
|
|
b78eeb24ea | 5 years ago |
|
|
d9ae86f422 | 5 years ago |
|
|
8f52a73718 | 5 years ago |
|
|
09fd94e781 | 5 years ago |
|
|
9982550a5e | 5 years ago |
|
|
38031eb427 | 5 years ago |
|
|
5e9fb50db5 | 5 years ago |
|
|
5a5d627deb | 5 years ago |
|
|
493027d39e | 5 years ago |
|
|
95ad4d1032 | 5 years ago |
|
|
b4b51a0510 | 5 years ago |
|
|
45117f907d | 5 years ago |
|
|
6b27cdc105 | 5 years ago |
|
|
e7decf3019 | 5 years ago |
|
|
f214437538 | 5 years ago |
|
|
a27a43ec0f | 5 years ago |
|
|
ff2b1c0d50 | 5 years ago |
|
|
d65c6cb6f0 | 5 years ago |
|
|
943b9390e7 | 5 years ago |
|
|
9f581156d9 | 5 years ago |
|
|
ed2f0de95e | 5 years ago |
|
|
93670ab5a2 | 5 years ago |
|
|
841adff934 | 5 years ago |
|
|
297871d4be | 5 years ago |
|
|
c1fd46641e | 5 years ago |
@ -1,2 +1,2 @@
|
||||
style_images/1.jpg NEATNESS
|
||||
style_images/2.jpg 锁店君和宾馆
|
||||
style_images/2.jpg 卡丹鑫宇通
|
||||
|
||||
@ -0,0 +1,102 @@
|
||||
Global:
|
||||
use_gpu: True
|
||||
epoch_num: 72
|
||||
log_smooth_window: 20
|
||||
print_batch_step: 10
|
||||
save_model_dir: ./output/rec/rec_mv3_tps_bilstm_att/
|
||||
save_epoch_step: 3
|
||||
# evaluation is run every 5000 iterations after the 4000th iteration
|
||||
eval_batch_step: [0, 2000]
|
||||
# if pretrained_model is saved in static mode, load_static_weights must set to True
|
||||
cal_metric_during_train: True
|
||||
pretrained_model:
|
||||
checkpoints:
|
||||
save_inference_dir:
|
||||
use_visualdl: False
|
||||
infer_img: doc/imgs_words/ch/word_1.jpg
|
||||
# for data or label process
|
||||
character_dict_path:
|
||||
character_type: en
|
||||
max_text_length: 25
|
||||
infer_mode: False
|
||||
use_space_char: False
|
||||
|
||||
|
||||
Optimizer:
|
||||
name: Adam
|
||||
beta1: 0.9
|
||||
beta2: 0.999
|
||||
lr:
|
||||
learning_rate: 0.0005
|
||||
regularizer:
|
||||
name: 'L2'
|
||||
factor: 0.00001
|
||||
|
||||
Architecture:
|
||||
model_type: rec
|
||||
algorithm: RARE
|
||||
Transform:
|
||||
name: TPS
|
||||
num_fiducial: 20
|
||||
loc_lr: 0.1
|
||||
model_name: small
|
||||
Backbone:
|
||||
name: MobileNetV3
|
||||
scale: 0.5
|
||||
model_name: large
|
||||
Neck:
|
||||
name: SequenceEncoder
|
||||
encoder_type: rnn
|
||||
hidden_size: 96
|
||||
Head:
|
||||
name: AttentionHead
|
||||
hidden_size: 96
|
||||
|
||||
|
||||
Loss:
|
||||
name: AttentionLoss
|
||||
|
||||
PostProcess:
|
||||
name: AttnLabelDecode
|
||||
|
||||
Metric:
|
||||
name: RecMetric
|
||||
main_indicator: acc
|
||||
|
||||
Train:
|
||||
dataset:
|
||||
name: LMDBDataSet
|
||||
data_dir: ./train_data/data_lmdb_release/training/
|
||||
transforms:
|
||||
- DecodeImage: # load image
|
||||
img_mode: BGR
|
||||
channel_first: False
|
||||
- AttnLabelEncode: # Class handling label
|
||||
- RecResizeImg:
|
||||
image_shape: [3, 32, 100]
|
||||
- KeepKeys:
|
||||
keep_keys: ['image', 'label', 'length'] # dataloader will return list in this order
|
||||
loader:
|
||||
shuffle: True
|
||||
batch_size_per_card: 256
|
||||
drop_last: True
|
||||
num_workers: 8
|
||||
|
||||
Eval:
|
||||
dataset:
|
||||
name: LMDBDataSet
|
||||
data_dir: ./train_data/data_lmdb_release/validation/
|
||||
transforms:
|
||||
- DecodeImage: # load image
|
||||
img_mode: BGR
|
||||
channel_first: False
|
||||
- AttnLabelEncode: # Class handling label
|
||||
- RecResizeImg:
|
||||
image_shape: [3, 32, 100]
|
||||
- KeepKeys:
|
||||
keep_keys: ['image', 'label', 'length'] # dataloader will return list in this order
|
||||
loader:
|
||||
shuffle: False
|
||||
drop_last: False
|
||||
batch_size_per_card: 256
|
||||
num_workers: 1
|
||||
@ -0,0 +1,101 @@
|
||||
Global:
|
||||
use_gpu: True
|
||||
epoch_num: 400
|
||||
log_smooth_window: 20
|
||||
print_batch_step: 10
|
||||
save_model_dir: ./output/rec/b3_rare_r34_none_gru/
|
||||
save_epoch_step: 3
|
||||
# evaluation is run every 5000 iterations after the 4000th iteration
|
||||
eval_batch_step: [0, 2000]
|
||||
# if pretrained_model is saved in static mode, load_static_weights must set to True
|
||||
cal_metric_during_train: True
|
||||
pretrained_model:
|
||||
checkpoints:
|
||||
save_inference_dir:
|
||||
use_visualdl: False
|
||||
infer_img: doc/imgs_words/ch/word_1.jpg
|
||||
# for data or label process
|
||||
character_dict_path:
|
||||
character_type: en
|
||||
max_text_length: 25
|
||||
infer_mode: False
|
||||
use_space_char: False
|
||||
|
||||
|
||||
Optimizer:
|
||||
name: Adam
|
||||
beta1: 0.9
|
||||
beta2: 0.999
|
||||
lr:
|
||||
learning_rate: 0.0005
|
||||
regularizer:
|
||||
name: 'L2'
|
||||
factor: 0.00000
|
||||
|
||||
Architecture:
|
||||
model_type: rec
|
||||
algorithm: RARE
|
||||
Transform:
|
||||
name: TPS
|
||||
num_fiducial: 20
|
||||
loc_lr: 0.1
|
||||
model_name: large
|
||||
Backbone:
|
||||
name: ResNet
|
||||
layers: 34
|
||||
Neck:
|
||||
name: SequenceEncoder
|
||||
encoder_type: rnn
|
||||
hidden_size: 256 #96
|
||||
Head:
|
||||
name: AttentionHead # AttentionHead
|
||||
hidden_size: 256 #
|
||||
l2_decay: 0.00001
|
||||
|
||||
Loss:
|
||||
name: AttentionLoss
|
||||
|
||||
PostProcess:
|
||||
name: AttnLabelDecode
|
||||
|
||||
Metric:
|
||||
name: RecMetric
|
||||
main_indicator: acc
|
||||
|
||||
Train:
|
||||
dataset:
|
||||
name: LMDBDataSet
|
||||
data_dir: ./train_data/data_lmdb_release/training/
|
||||
transforms:
|
||||
- DecodeImage: # load image
|
||||
img_mode: BGR
|
||||
channel_first: False
|
||||
- AttnLabelEncode: # Class handling label
|
||||
- RecResizeImg:
|
||||
image_shape: [3, 32, 100]
|
||||
- KeepKeys:
|
||||
keep_keys: ['image', 'label', 'length'] # dataloader will return list in this order
|
||||
loader:
|
||||
shuffle: True
|
||||
batch_size_per_card: 256
|
||||
drop_last: True
|
||||
num_workers: 8
|
||||
|
||||
Eval:
|
||||
dataset:
|
||||
name: LMDBDataSet
|
||||
data_dir: ./train_data/data_lmdb_release/validation/
|
||||
transforms:
|
||||
- DecodeImage: # load image
|
||||
img_mode: BGR
|
||||
channel_first: False
|
||||
- AttnLabelEncode: # Class handling label
|
||||
- RecResizeImg:
|
||||
image_shape: [3, 32, 100]
|
||||
- KeepKeys:
|
||||
keep_keys: ['image', 'label', 'length'] # dataloader will return list in this order
|
||||
loader:
|
||||
shuffle: False
|
||||
drop_last: False
|
||||
batch_size_per_card: 256
|
||||
num_workers: 8
|
||||
@ -0,0 +1,107 @@
|
||||
Global:
|
||||
use_gpu: True
|
||||
epoch_num: 72
|
||||
log_smooth_window: 20
|
||||
print_batch_step: 5
|
||||
save_model_dir: ./output/rec/srn_new
|
||||
save_epoch_step: 3
|
||||
# evaluation is run every 5000 iterations after the 4000th iteration
|
||||
eval_batch_step: [0, 5000]
|
||||
# if pretrained_model is saved in static mode, load_static_weights must set to True
|
||||
cal_metric_during_train: True
|
||||
pretrained_model:
|
||||
checkpoints:
|
||||
save_inference_dir:
|
||||
use_visualdl: False
|
||||
infer_img: doc/imgs_words/ch/word_1.jpg
|
||||
# for data or label process
|
||||
character_dict_path:
|
||||
character_type: en
|
||||
max_text_length: 25
|
||||
num_heads: 8
|
||||
infer_mode: False
|
||||
use_space_char: False
|
||||
|
||||
|
||||
Optimizer:
|
||||
name: Adam
|
||||
beta1: 0.9
|
||||
beta2: 0.999
|
||||
clip_norm: 10.0
|
||||
lr:
|
||||
learning_rate: 0.0001
|
||||
|
||||
Architecture:
|
||||
model_type: rec
|
||||
algorithm: SRN
|
||||
in_channels: 1
|
||||
Transform:
|
||||
Backbone:
|
||||
name: ResNetFPN
|
||||
Head:
|
||||
name: SRNHead
|
||||
max_text_length: 25
|
||||
num_heads: 8
|
||||
num_encoder_TUs: 2
|
||||
num_decoder_TUs: 4
|
||||
hidden_dims: 512
|
||||
|
||||
Loss:
|
||||
name: SRNLoss
|
||||
|
||||
PostProcess:
|
||||
name: SRNLabelDecode
|
||||
|
||||
Metric:
|
||||
name: RecMetric
|
||||
main_indicator: acc
|
||||
|
||||
Train:
|
||||
dataset:
|
||||
name: LMDBDataSet
|
||||
data_dir: ./train_data/data_lmdb_release/training/
|
||||
transforms:
|
||||
- DecodeImage: # load image
|
||||
img_mode: BGR
|
||||
channel_first: False
|
||||
- SRNLabelEncode: # Class handling label
|
||||
- SRNRecResizeImg:
|
||||
image_shape: [1, 64, 256]
|
||||
- KeepKeys:
|
||||
keep_keys: ['image',
|
||||
'label',
|
||||
'length',
|
||||
'encoder_word_pos',
|
||||
'gsrm_word_pos',
|
||||
'gsrm_slf_attn_bias1',
|
||||
'gsrm_slf_attn_bias2'] # dataloader will return list in this order
|
||||
loader:
|
||||
shuffle: False
|
||||
batch_size_per_card: 64
|
||||
drop_last: False
|
||||
num_workers: 4
|
||||
|
||||
Eval:
|
||||
dataset:
|
||||
name: LMDBDataSet
|
||||
data_dir: ./train_data/data_lmdb_release/validation/
|
||||
transforms:
|
||||
- DecodeImage: # load image
|
||||
img_mode: BGR
|
||||
channel_first: False
|
||||
- SRNLabelEncode: # Class handling label
|
||||
- SRNRecResizeImg:
|
||||
image_shape: [1, 64, 256]
|
||||
- KeepKeys:
|
||||
keep_keys: ['image',
|
||||
'label',
|
||||
'length',
|
||||
'encoder_word_pos',
|
||||
'gsrm_word_pos',
|
||||
'gsrm_slf_attn_bias1',
|
||||
'gsrm_slf_attn_bias2']
|
||||
loader:
|
||||
shuffle: False
|
||||
drop_last: False
|
||||
batch_size_per_card: 32
|
||||
num_workers: 4
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue