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
8faaefc4
Commit
8faaefc4
authored
Jul 12, 2019
by
buoyancy99
Committed by
Francisco Massa
Jul 12, 2019
Browse files
update shallow copy method to allow variable size tensor input (#1111)
parent
95a87851
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/models/detection/transform.py
torchvision/models/detection/transform.py
+1
-1
No files found.
torchvision/models/detection/transform.py
View file @
8faaefc4
...
...
@@ -30,7 +30,7 @@ class GeneralizedRCNNTransform(nn.Module):
self
.
image_std
=
image_std
def
forward
(
self
,
images
,
targets
=
None
):
images
=
images
[:
]
images
=
[
img
for
img
in
images
]
for
i
in
range
(
len
(
images
)):
image
=
images
[
i
]
target
=
targets
[
i
]
if
targets
is
not
None
else
targets
...
...
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