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
c6bdbc63
Commit
c6bdbc63
authored
Jan 22, 2022
by
HinGwenWoong
Browse files
Fixed: Only use cpu while using paddlepaddle-gpu when process auto recognition
parent
89abfc31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+2
-3
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
c6bdbc63
...
...
@@ -1182,7 +1182,6 @@ class MainWindow(QMainWindow):
def
addZoom
(
self
,
increment
=
10
):
self
.
setZoom
(
self
.
zoomWidget
.
value
()
+
increment
)
print
(
self
.
zoomWidget
.
value
()
+
increment
)
self
.
imageSlider
.
setValue
(
self
.
zoomWidget
.
value
()
+
increment
)
# set zoom slider value
def
zoomRequest
(
self
,
delta
):
...
...
@@ -2162,10 +2161,10 @@ def get_main_app(argv=[]):
app
=
QApplication
(
argv
)
app
.
setApplicationName
(
__appname__
)
app
.
setWindowIcon
(
newIcon
(
"app"
))
# Tzutalin 201705+: Accept extra a
g
ruments to change predefined class file
# Tzutalin 201705+: Accept extra ar
g
uments to change predefined class file
arg_parser
=
argparse
.
ArgumentParser
()
arg_parser
.
add_argument
(
"--lang"
,
type
=
str
,
default
=
'en'
,
nargs
=
"?"
)
arg_parser
.
add_argument
(
"--gpu"
,
type
=
str2bool
,
default
=
Fals
e
,
nargs
=
"?"
)
arg_parser
.
add_argument
(
"--gpu"
,
type
=
str2bool
,
default
=
Tru
e
,
nargs
=
"?"
)
arg_parser
.
add_argument
(
"--predefined_classes_file"
,
default
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"data"
,
"predefined_classes.txt"
),
nargs
=
"?"
)
...
...
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