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
e0d7deaa
Unverified
Commit
e0d7deaa
authored
May 21, 2021
by
Thomas Young
Committed by
GitHub
May 21, 2021
Browse files
fix gpu_id
fix gpu_id
parent
6893d151
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
deploy/pdserving/win/ocr_web_server.py
deploy/pdserving/win/ocr_web_server.py
+1
-1
No files found.
deploy/pdserving/win/ocr_web_server.py
View file @
e0d7deaa
...
@@ -42,7 +42,7 @@ class OCRService(WebService):
...
@@ -42,7 +42,7 @@ class OCRService(WebService):
self
.
det_client
=
LocalPredictor
()
self
.
det_client
=
LocalPredictor
()
if
sys
.
argv
[
1
]
==
'gpu'
:
if
sys
.
argv
[
1
]
==
'gpu'
:
self
.
det_client
.
load_model_config
(
self
.
det_client
.
load_model_config
(
det_model_config
,
use_gpu
=
True
,
gpu_id
=
1
)
det_model_config
,
use_gpu
=
True
,
gpu_id
=
0
)
elif
sys
.
argv
[
1
]
==
'cpu'
:
elif
sys
.
argv
[
1
]
==
'cpu'
:
self
.
det_client
.
load_model_config
(
det_model_config
)
self
.
det_client
.
load_model_config
(
det_model_config
)
self
.
ocr_reader
=
OCRReader
(
self
.
ocr_reader
=
OCRReader
(
...
...
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