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
125a7dee
Commit
125a7dee
authored
Apr 25, 2021
by
LDOUBLEV
Browse files
fix hubserving
parent
bfcc5f73
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
deploy/hubserving/ocr_det/module.py
deploy/hubserving/ocr_det/module.py
+1
-1
deploy/hubserving/ocr_rec/module.py
deploy/hubserving/ocr_rec/module.py
+1
-1
deploy/hubserving/ocr_system/module.py
deploy/hubserving/ocr_system/module.py
+1
-1
No files found.
deploy/hubserving/ocr_det/module.py
View file @
125a7dee
...
@@ -18,6 +18,7 @@ import paddlehub as hub
...
@@ -18,6 +18,7 @@ import paddlehub as hub
from
tools.infer.utility
import
base64_to_cv2
from
tools.infer.utility
import
base64_to_cv2
from
tools.infer.predict_det
import
TextDetector
from
tools.infer.predict_det
import
TextDetector
from
tools.infer.utility
import
parse_args
from
tools.infer.utility
import
parse_args
from
deploy.hubserving.ocr_system.params
import
read_params
@
moduleinfo
(
@
moduleinfo
(
...
@@ -57,7 +58,6 @@ class OCRDet(hub.Module):
...
@@ -57,7 +58,6 @@ class OCRDet(hub.Module):
sys
.
argv
=
sys
.
argv
[:
1
]
sys
.
argv
=
sys
.
argv
[:
1
]
cfg
=
parse_args
()
cfg
=
parse_args
()
from
ocr_det.params
import
read_params
update_cfg_map
=
vars
(
read_params
())
update_cfg_map
=
vars
(
read_params
())
for
key
in
update_cfg_map
:
for
key
in
update_cfg_map
:
...
...
deploy/hubserving/ocr_rec/module.py
View file @
125a7dee
...
@@ -16,6 +16,7 @@ import paddlehub as hub
...
@@ -16,6 +16,7 @@ import paddlehub as hub
from
tools.infer.utility
import
base64_to_cv2
from
tools.infer.utility
import
base64_to_cv2
from
tools.infer.predict_rec
import
TextRecognizer
from
tools.infer.predict_rec
import
TextRecognizer
from
tools.infer.utility
import
parse_args
from
tools.infer.utility
import
parse_args
from
deploy.hubserving.ocr_rec.params
import
read_params
@
moduleinfo
(
@
moduleinfo
(
...
@@ -55,7 +56,6 @@ class OCRRec(hub.Module):
...
@@ -55,7 +56,6 @@ class OCRRec(hub.Module):
sys
.
argv
=
sys
.
argv
[:
1
]
sys
.
argv
=
sys
.
argv
[:
1
]
cfg
=
parse_args
()
cfg
=
parse_args
()
from
ocr_det.params
import
read_params
update_cfg_map
=
vars
(
read_params
())
update_cfg_map
=
vars
(
read_params
())
for
key
in
update_cfg_map
:
for
key
in
update_cfg_map
:
...
...
deploy/hubserving/ocr_system/module.py
View file @
125a7dee
...
@@ -19,7 +19,7 @@ import paddlehub as hub
...
@@ -19,7 +19,7 @@ import paddlehub as hub
from
tools.infer.utility
import
base64_to_cv2
from
tools.infer.utility
import
base64_to_cv2
from
tools.infer.predict_system
import
TextSystem
from
tools.infer.predict_system
import
TextSystem
from
tools.infer.utility
import
parse_args
from
tools.infer.utility
import
parse_args
from
deploy.hubserving.ocr_
det
.params
import
read_params
from
deploy.hubserving.ocr_
system
.params
import
read_params
@
moduleinfo
(
@
moduleinfo
(
...
...
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