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
8d849cfa
"examples/vscode:/vscode.git/clone" did not exist on "04f4bd54ea3126185ced2ffdf26f608dcd1db30e"
Commit
8d849cfa
authored
Jul 06, 2020
by
tink2123
Browse files
update logger
parent
97a3af3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ppocr/data/rec/dataset_traversal.py
ppocr/data/rec/dataset_traversal.py
+10
-2
No files found.
ppocr/data/rec/dataset_traversal.py
View file @
8d849cfa
...
...
@@ -46,7 +46,11 @@ class LMDBReader(object):
if
"tps"
in
params
:
self
.
ues_tps
=
True
if
"distort"
in
params
:
self
.
use_distort
=
params
[
'distort'
]
self
.
use_distort
=
params
[
'distort'
]
and
params
[
'use_gpu'
]
if
not
params
[
'use_gpu'
]:
logger
.
info
(
"Distort operation can only support in GPU. Distort will be set to False."
)
if
params
[
'mode'
]
==
'train'
:
self
.
batch_size
=
params
[
'train_batch_size_per_card'
]
self
.
drop_last
=
True
...
...
@@ -189,7 +193,11 @@ class SimpleReader(object):
if
"tps"
in
params
:
self
.
use_tps
=
True
if
"distort"
in
params
:
self
.
use_distort
=
params
[
'distort'
]
self
.
use_distort
=
params
[
'distort'
]
and
params
[
'use_gpu'
]
if
not
params
[
'use_gpu'
]:
logger
.
info
(
"Distort operation can only support in GPU.Distort will be set to False."
)
if
params
[
'mode'
]
==
'train'
:
self
.
batch_size
=
params
[
'train_batch_size_per_card'
]
self
.
drop_last
=
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