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
OpenDAS
MMCV
Commits
2882ef12
"vscode:/vscode.git/clone" did not exist on "d7001400764acb8de5df343bbc4c54479c0e6ebe"
Unverified
Commit
2882ef12
authored
Feb 11, 2019
by
HanZhipeng
Committed by
GitHub
Feb 11, 2019
Browse files
bug fixes
parent
8a3e232c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/parallel/collate.py
mmcv/parallel/collate.py
+1
-1
No files found.
mmcv/parallel/collate.py
View file @
2882ef12
...
...
@@ -36,7 +36,7 @@ def collate(batch, samples_per_gpu=1):
assert
isinstance
(
batch
[
i
].
data
,
torch
.
Tensor
)
# TODO: handle tensors other than 3d
assert
batch
[
i
].
dim
()
==
3
c
,
h
,
w
=
batch
[
0
].
size
()
c
,
h
,
w
=
batch
[
i
].
size
()
for
sample
in
batch
[
i
:
i
+
samples_per_gpu
]:
assert
c
==
sample
.
size
(
0
)
h
=
max
(
h
,
sample
.
size
(
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