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
b37c597d
Commit
b37c597d
authored
Jun 28, 2021
by
LDOUBLEV
Browse files
fix subprocess error
parent
ea60a034
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
tools/infer/predict_det.py
tools/infer/predict_det.py
+0
-5
No files found.
tools/infer/predict_det.py
View file @
b37c597d
...
@@ -31,8 +31,6 @@ from ppocr.utils.utility import get_image_file_list, check_and_read_gif
...
@@ -31,8 +31,6 @@ from ppocr.utils.utility import get_image_file_list, check_and_read_gif
from
ppocr.data
import
create_operators
,
transform
from
ppocr.data
import
create_operators
,
transform
from
ppocr.postprocess
import
build_post_process
from
ppocr.postprocess
import
build_post_process
# import tools.infer.benchmark_utils as benchmark_utils
logger
=
get_logger
()
logger
=
get_logger
()
import
auto_log
import
auto_log
...
@@ -221,7 +219,6 @@ class TextDetector(object):
...
@@ -221,7 +219,6 @@ class TextDetector(object):
self
.
autolog
.
times
.
end
(
stamp
=
True
)
self
.
autolog
.
times
.
end
(
stamp
=
True
)
et
=
time
.
time
()
et
=
time
.
time
()
self
.
autolog
.
get_avg_mem_mb
()
return
dt_boxes
,
et
-
st
return
dt_boxes
,
et
-
st
...
@@ -238,8 +235,6 @@ if __name__ == "__main__":
...
@@ -238,8 +235,6 @@ if __name__ == "__main__":
for
i
in
range
(
10
):
for
i
in
range
(
10
):
res
=
text_detector
(
img
)
res
=
text_detector
(
img
)
text_detector
.
autolog
.
mem_info
.
_start_subprocess
()
if
not
os
.
path
.
exists
(
draw_img_save
):
if
not
os
.
path
.
exists
(
draw_img_save
):
os
.
makedirs
(
draw_img_save
)
os
.
makedirs
(
draw_img_save
)
for
image_file
in
image_file_list
:
for
image_file
in
image_file_list
:
...
...
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