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
49c4a3a7
Commit
49c4a3a7
authored
Aug 17, 2021
by
LDOUBLEV
Browse files
gpu_id is None when args.use_gpu as False
parent
5bb6ae05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/infer/predict_det.py
tools/infer/predict_det.py
+1
-1
No files found.
tools/infer/predict_det.py
View file @
49c4a3a7
...
@@ -111,7 +111,7 @@ class TextDetector(object):
...
@@ -111,7 +111,7 @@ class TextDetector(object):
inference_config
=
self
.
config
,
inference_config
=
self
.
config
,
pids
=
pid
,
pids
=
pid
,
process_name
=
None
,
process_name
=
None
,
gpu_ids
=
gpu_id
,
gpu_ids
=
gpu_id
if
args
.
use_gpu
else
None
,
time_keys
=
[
time_keys
=
[
'preprocess_time'
,
'inference_time'
,
'postprocess_time'
'preprocess_time'
,
'inference_time'
,
'postprocess_time'
],
],
...
...
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