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
39955558
Commit
39955558
authored
Dec 16, 2020
by
WenmuZhou
Browse files
fix bugs
parent
8501e36e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
configs/det/det_r50_vd_sast_totaltext.yml
configs/det/det_r50_vd_sast_totaltext.yml
+2
-1
ppocr/utils/save_load.py
ppocr/utils/save_load.py
+0
-1
No files found.
configs/det/det_r50_vd_sast_totaltext.yml
View file @
39955558
...
...
@@ -60,7 +60,8 @@ Metric:
Train
:
dataset
:
name
:
SimpleDataSet
label_file_path
:
[
./train_data/art_latin_icdar_14pt/train_no_tt_test/train_label_json.txt
,
./train_data/total_text_icdar_14pt/train_label_json.txt
]
data_dir
:
./train_data/
label_file_list
:
[
./train_data/art_latin_icdar_14pt/train_no_tt_test/train_label_json.txt
,
./train_data/total_text_icdar_14pt/train_label_json.txt
]
data_ratio_list
:
[
0.5
,
0.5
]
transforms
:
-
DecodeImage
:
# load image
...
...
ppocr/utils/save_load.py
View file @
39955558
...
...
@@ -102,7 +102,6 @@ def init_model(config, model, logger, optimizer=None, lr_scheduler=None):
best_model_dict
=
states_dict
.
get
(
'best_model_dict'
,
{})
if
'epoch'
in
states_dict
:
best_model_dict
[
'start_epoch'
]
=
states_dict
[
'epoch'
]
+
1
best_model_dict
[
'start_epoch'
]
=
best_model_dict
[
'best_epoch'
]
+
1
logger
.
info
(
"resume from {}"
.
format
(
checkpoints
))
elif
pretrained_model
:
...
...
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