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
vision
Commits
a0c79b39
Unverified
Commit
a0c79b39
authored
Mar 22, 2024
by
Anner
Committed by
GitHub
Mar 22, 2024
Browse files
Just a typo (#8341)
parent
480eec29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gallery/transforms/plot_transforms_e2e.py
gallery/transforms/plot_transforms_e2e.py
+2
-2
No files found.
gallery/transforms/plot_transforms_e2e.py
View file @
a0c79b39
...
@@ -151,8 +151,8 @@ data_loader = torch.utils.data.DataLoader(
...
@@ -151,8 +151,8 @@ data_loader = torch.utils.data.DataLoader(
# We need a custom collation function here, since the object detection
# We need a custom collation function here, since the object detection
# models expect a sequence of images and target dictionaries. The default
# models expect a sequence of images and target dictionaries. The default
# collation function tries to torch.stack() the individual elements,
# collation function tries to torch.stack() the individual elements,
# which fails in general for object detection, because the number of bouding
# which fails in general for object detection, because the number of bou
n
ding
# boxes varies between the images of
a
same batch.
# boxes varies between the images of
the
same batch.
collate_fn
=
lambda
batch
:
tuple
(
zip
(
*
batch
)),
collate_fn
=
lambda
batch
:
tuple
(
zip
(
*
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