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
b5f1f89a
Unverified
Commit
b5f1f89a
authored
Jul 26, 2020
by
shaohua.zhang
Committed by
GitHub
Jul 26, 2020
Browse files
put the shuffer into iter
parent
dd32d0f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/data/det/dataset_traversal.py
ppocr/data/det/dataset_traversal.py
+2
-2
No files found.
ppocr/data/det/dataset_traversal.py
View file @
b5f1f89a
...
...
@@ -40,9 +40,9 @@ class TrainReader(object):
with
open
(
self
.
label_file_path
,
"rb"
)
as
fin
:
label_infor_list
=
fin
.
readlines
()
img_num
=
len
(
label_infor_list
)
img_id_list
=
list
(
range
(
img_num
))
random
.
shuffle
(
img_id_list
)
img_id_list
=
list
(
range
(
img_num
))
if
sys
.
platform
==
"win32"
:
random
.
shuffle
(
img_id_list
)
print
(
"multiprocess is not fully compatible with Windows."
"num_workers will be 1."
)
self
.
num_workers
=
1
...
...
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