Skip to content

Commit

Permalink
Fix F.resized_crop call compatibility with torchvision 0.5
Browse files Browse the repository at this point in the history
i/j/w/h got renamed to top/left/width/height so I've dropped calling
these as kwargs to support both variants of this method.
  • Loading branch information
willprice committed Jan 28, 2020
1 parent 69e710b commit b9d9fde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/torchvideo/transforms/transforms/multiscale_crop_video.py
Expand Up @@ -66,11 +66,11 @@ def _transform(
crop_shape, offset = params
for frame in frames:
yield F.resized_crop(
img=frame,
i=offset.y,
j=offset.x,
h=crop_shape.height,
w=crop_shape.width,
frame,
offset.y,
offset.x,
crop_shape.height,
crop_shape.width,
size=self.size,
interpolation=self.interpolation,
)
Expand Down

0 comments on commit b9d9fde

Please sign in to comment.