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
1cbe4bf2
Commit
1cbe4bf2
authored
Jan 14, 2022
by
WenmuZhou
Browse files
add todo
parent
23eb335d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ppocr/data/collate_fn.py
ppocr/data/collate_fn.py
+2
-0
No files found.
ppocr/data/collate_fn.py
View file @
1cbe4bf2
...
...
@@ -24,6 +24,7 @@ class DictCollator(object):
"""
def
__call__
(
self
,
batch
):
# todo:support batch operators
data_dict
=
defaultdict
(
list
)
to_tensor_keys
=
[]
for
sample
in
batch
:
...
...
@@ -43,6 +44,7 @@ class ListCollator(object):
"""
def
__call__
(
self
,
batch
):
# todo:support batch operators
data_dict
=
defaultdict
(
list
)
to_tensor_idxs
=
[]
for
sample
in
batch
:
...
...
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