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
2f62c953
Commit
2f62c953
authored
Jun 08, 2021
by
WenmuZhou
Browse files
fix download model error
parent
d27360a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ppstructure/paddlestructure.py
ppstructure/paddlestructure.py
+2
-3
No files found.
ppstructure/paddlestructure.py
View file @
2f62c953
...
@@ -78,8 +78,8 @@ class PaddleStructure(OCRSystem):
...
@@ -78,8 +78,8 @@ class PaddleStructure(OCRSystem):
params
.
structure_model_dir
=
os
.
path
.
join
(
BASE_DIR
,
VERSION
,
'structure'
)
params
.
structure_model_dir
=
os
.
path
.
join
(
BASE_DIR
,
VERSION
,
'structure'
)
# download model
# download model
maybe_download
(
params
.
det_model_dir
,
model_urls
[
'det'
])
maybe_download
(
params
.
det_model_dir
,
model_urls
[
'det'
])
maybe_download
(
params
.
det
_model_dir
,
model_urls
[
'rec'
])
maybe_download
(
params
.
rec
_model_dir
,
model_urls
[
'rec'
])
maybe_download
(
params
.
det
_model_dir
,
model_urls
[
'structure'
])
maybe_download
(
params
.
structure
_model_dir
,
model_urls
[
'structure'
])
if
params
.
rec_char_dict_path
is
None
:
if
params
.
rec_char_dict_path
is
None
:
params
.
rec_char_type
=
'EN'
params
.
rec_char_type
=
'EN'
...
@@ -143,4 +143,3 @@ def main():
...
@@ -143,4 +143,3 @@ def main():
logger
.
info
(
item
[
'res'
])
logger
.
info
(
item
[
'res'
])
save_res
(
result
,
save_folder
,
img_name
)
save_res
(
result
,
save_folder
,
img_name
)
logger
.
info
(
'result save to {}'
.
format
(
os
.
path
.
join
(
save_folder
,
img_name
)))
logger
.
info
(
'result save to {}'
.
format
(
os
.
path
.
join
(
save_folder
,
img_name
)))
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