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
3a2d0f61
"...composable_kernel_onnx.git" did not exist on "cac014f17355d6504b618f5945c6326a285db7e9"
Unverified
Commit
3a2d0f61
authored
Jul 01, 2021
by
bingooo
Committed by
GitHub
Jul 01, 2021
Browse files
fix bug
parent
5661c686
Changes
1
Hide 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 @
3a2d0f61
...
@@ -98,7 +98,7 @@ def load_dygraph_params(config, model, logger, optimizer):
...
@@ -98,7 +98,7 @@ def load_dygraph_params(config, model, logger, optimizer):
pm
=
config
[
'Global'
][
'pretrained_model'
]
pm
=
config
[
'Global'
][
'pretrained_model'
]
if
pm
is
None
:
if
pm
is
None
:
return
{}
return
{}
if
not
os
.
path
.
exists
(
pm
)
or
not
os
.
path
.
exists
(
pm
+
".pdparams"
):
if
not
os
.
path
.
exists
(
pm
)
and
not
os
.
path
.
exists
(
pm
+
".pdparams"
):
logger
.
info
(
f
"The pretrained_model
{
pm
}
does not exists!"
)
logger
.
info
(
f
"The pretrained_model
{
pm
}
does not exists!"
)
return
{}
return
{}
pm
=
pm
if
pm
.
endswith
(
'.pdparams'
)
else
pm
+
'.pdparams'
pm
=
pm
if
pm
.
endswith
(
'.pdparams'
)
else
pm
+
'.pdparams'
...
...
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