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
0dfb536f
Unverified
Commit
0dfb536f
authored
May 17, 2022
by
lgcy
Committed by
GitHub
May 17, 2022
Browse files
Update lmdb_dataset.py
parent
5cab4c0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ppocr/data/lmdb_dataset.py
ppocr/data/lmdb_dataset.py
+2
-0
No files found.
ppocr/data/lmdb_dataset.py
View file @
0dfb536f
...
@@ -37,6 +37,8 @@ class LMDBDataSet(Dataset):
...
@@ -37,6 +37,8 @@ class LMDBDataSet(Dataset):
if
self
.
do_shuffle
:
if
self
.
do_shuffle
:
np
.
random
.
shuffle
(
self
.
data_idx_order_list
)
np
.
random
.
shuffle
(
self
.
data_idx_order_list
)
self
.
ops
=
create_operators
(
dataset_config
[
'transforms'
],
global_config
)
self
.
ops
=
create_operators
(
dataset_config
[
'transforms'
],
global_config
)
self
.
ext_op_transform_idx
=
dataset_config
.
get
(
"ext_op_transform_idx"
,
2
)
ratio_list
=
dataset_config
.
get
(
"ratio_list"
,
[
1.0
])
ratio_list
=
dataset_config
.
get
(
"ratio_list"
,
[
1.0
])
self
.
need_reset
=
True
in
[
x
<
1
for
x
in
ratio_list
]
self
.
need_reset
=
True
in
[
x
<
1
for
x
in
ratio_list
]
...
...
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