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
61cee7e6
Unverified
Commit
61cee7e6
authored
Jul 01, 2021
by
bingooo
Committed by
GitHub
Jul 01, 2021
Browse files
fix bug
parent
3a2d0f61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/utils/save_load.py
ppocr/utils/save_load.py
+1
-1
No files found.
ppocr/utils/save_load.py
View file @
61cee7e6
...
@@ -91,7 +91,7 @@ def init_model(config, model, optimizer=None, lr_scheduler=None):
...
@@ -91,7 +91,7 @@ def init_model(config, model, optimizer=None, lr_scheduler=None):
def
load_dygraph_params
(
config
,
model
,
logger
,
optimizer
):
def
load_dygraph_params
(
config
,
model
,
logger
,
optimizer
):
ckp
=
config
[
'Global'
][
'checkpoints'
]
ckp
=
config
[
'Global'
][
'checkpoints'
]
if
ckp
and
os
.
path
.
exists
(
ckp
):
if
ckp
and
os
.
path
.
exists
(
ckp
+
".pdparams"
):
pre_best_model_dict
=
init_model
(
config
,
model
,
optimizer
)
pre_best_model_dict
=
init_model
(
config
,
model
,
optimizer
)
return
pre_best_model_dict
return
pre_best_model_dict
else
:
else
:
...
...
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