Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
9126cb6f
Commit
9126cb6f
authored
May 13, 2020
by
LDOUBLEV
Browse files
modify rec saved model dir
parent
8007a955
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
11 deletions
+9
-11
configs/rec/rec_mv3_none_bilstm_ctc.yml
configs/rec/rec_mv3_none_bilstm_ctc.yml
+1
-1
configs/rec/rec_mv3_none_none_ctc.yml
configs/rec/rec_mv3_none_none_ctc.yml
+1
-1
configs/rec/rec_mv3_tps_bilstm_attn.yml
configs/rec/rec_mv3_tps_bilstm_attn.yml
+1
-1
configs/rec/rec_mv3_tps_bilstm_ctc.yml
configs/rec/rec_mv3_tps_bilstm_ctc.yml
+1
-1
configs/rec/rec_r34_vd_none_bilstm_ctc.yml
configs/rec/rec_r34_vd_none_bilstm_ctc.yml
+1
-1
configs/rec/rec_r34_vd_none_none_ctc.yml
configs/rec/rec_r34_vd_none_none_ctc.yml
+1
-1
configs/rec/rec_r34_vd_tps_bilstm_attn.yml
configs/rec/rec_r34_vd_tps_bilstm_attn.yml
+1
-1
configs/rec/rec_r34_vd_tps_bilstm_ctc.yml
configs/rec/rec_r34_vd_tps_bilstm_ctc.yml
+1
-1
tools/program.py
tools/program.py
+1
-3
No files found.
configs/rec/rec_mv3_none_bilstm_ctc.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_CRNN
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_mv3_none_none_ctc.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_Rosetta
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_mv3_tps_bilstm_attn.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_RARE
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_mv3_tps_bilstm_ctc.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_STARNet
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_r34_vd_none_bilstm_ctc.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_CRNN
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_r34_vd_none_none_ctc.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_Rosetta
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_r34_vd_tps_bilstm_attn.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_RARE
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
configs/rec/rec_r34_vd_tps_bilstm_ctc.yml
View file @
9126cb6f
...
@@ -4,7 +4,7 @@ Global:
...
@@ -4,7 +4,7 @@ Global:
epoch_num
:
72
epoch_num
:
72
log_smooth_window
:
20
log_smooth_window
:
20
print_batch_step
:
10
print_batch_step
:
10
save_model_dir
:
output/rec
save_model_dir
:
output/rec
_STARNet
save_epoch_step
:
3
save_epoch_step
:
3
eval_batch_step
:
2000
eval_batch_step
:
2000
train_batch_size_per_card
:
256
train_batch_size_per_card
:
256
...
...
tools/program.py
View file @
9126cb6f
...
@@ -284,9 +284,7 @@ def train_eval_rec_run(config, exe, train_info_dict, eval_info_dict):
...
@@ -284,9 +284,7 @@ def train_eval_rec_run(config, exe, train_info_dict, eval_info_dict):
eval_batch_step
=
config
[
'Global'
][
'eval_batch_step'
]
eval_batch_step
=
config
[
'Global'
][
'eval_batch_step'
]
save_epoch_step
=
config
[
'Global'
][
'save_epoch_step'
]
save_epoch_step
=
config
[
'Global'
][
'save_epoch_step'
]
save_model_dir
=
config
[
'Global'
][
'save_model_dir'
]
save_model_dir
=
config
[
'Global'
][
'save_model_dir'
]
if
save_model_dir
[
-
1
]
==
"/"
:
if
not
os
.
path
.
exists
(
save_model_dir
):
save_model_dir
=
save_model_dir
[:
-
1
]
if
not
os
.
path
.
exists
(
save_model_dir
+
config
[
'Global'
][
'algorithm'
]):
os
.
makedirs
(
save_model_dir
)
os
.
makedirs
(
save_model_dir
)
train_stats
=
TrainingStats
(
log_smooth_window
,
[
'loss'
,
'acc'
])
train_stats
=
TrainingStats
(
log_smooth_window
,
[
'loss'
,
'acc'
])
best_eval_acc
=
-
1
best_eval_acc
=
-
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment