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
8ad1cbe0
Unverified
Commit
8ad1cbe0
authored
Aug 19, 2020
by
MissPenguin
Committed by
GitHub
Aug 19, 2020
Browse files
Merge pull request #557 from Sunny-wong/develop
Update dataset_traversal.py
parents
d2e1eb5e
b2e1a849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/data/rec/dataset_traversal.py
ppocr/data/rec/dataset_traversal.py
+1
-1
No files found.
ppocr/data/rec/dataset_traversal.py
View file @
8ad1cbe0
...
@@ -237,7 +237,7 @@ class SimpleReader(object):
...
@@ -237,7 +237,7 @@ class SimpleReader(object):
def
get_device_num
():
def
get_device_num
():
if
self
.
use_gpu
:
if
self
.
use_gpu
:
gpus
=
os
.
environ
.
get
(
"CUDA_VISIBLE_DEVICES"
,
1
)
gpus
=
os
.
environ
.
get
(
"CUDA_VISIBLE_DEVICES"
,
'1'
)
gpu_num
=
len
(
gpus
.
split
(
','
))
gpu_num
=
len
(
gpus
.
split
(
','
))
return
gpu_num
return
gpu_num
else
:
else
:
...
...
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