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
56fb8411
Unverified
Commit
56fb8411
authored
Sep 01, 2022
by
vfdev
Committed by
GitHub
Sep 01, 2022
Browse files
[proto] Fixed issue in FixedSizeCrop (#6532)
Co-authored-by:
Philip Meier
<
github.pmeier@posteo.de
>
parent
15b97d4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/prototype/transforms/_geometry.py
torchvision/prototype/transforms/_geometry.py
+1
-1
No files found.
torchvision/prototype/transforms/_geometry.py
View file @
56fb8411
...
...
@@ -801,7 +801,7 @@ class FixedSizeCrop(Transform):
if
needs_crop
and
bounding_boxes
is
not
None
:
bounding_boxes
=
cast
(
features
.
BoundingBox
,
F
.
crop
(
bounding_boxes
,
top
=
top
,
left
=
left
,
height
=
height
,
width
=
width
)
features
.
BoundingBox
,
F
.
crop
(
bounding_boxes
,
top
=
top
,
left
=
left
,
height
=
new_
height
,
width
=
new_
width
)
)
bounding_boxes
=
features
.
BoundingBox
.
new_like
(
bounding_boxes
,
...
...
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