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
56930012
Unverified
Commit
56930012
authored
Dec 20, 2020
by
dyning
Committed by
GitHub
Dec 20, 2020
Browse files
Merge pull request #1525 from Evezerest/dy1
set default use_gpu to False
parents
42fc648c
50b5ed91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+1
-1
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
56930012
...
...
@@ -106,7 +106,7 @@ class MainWindow(QMainWindow, WindowMixin):
getStr
=
lambda
strId
:
self
.
stringBundle
.
getString
(
strId
)
self
.
defaultSaveDir
=
defaultSaveDir
self
.
ocr
=
PaddleOCR
(
use_pdserving
=
False
,
use_angle_cls
=
True
,
det
=
True
,
cls
=
True
,
use_gpu
=
Tru
e
,
lang
=
lang
)
self
.
ocr
=
PaddleOCR
(
use_pdserving
=
False
,
use_angle_cls
=
True
,
det
=
True
,
cls
=
True
,
use_gpu
=
Fals
e
,
lang
=
lang
)
if
os
.
path
.
exists
(
'./data/paddle.png'
):
result
=
self
.
ocr
.
ocr
(
'./data/paddle.png'
,
cls
=
True
,
det
=
True
)
...
...
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