Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transforms.Scale renamed transforms.Resize #278

Open
mashakhart opened this issue Apr 28, 2023 · 1 comment
Open

transforms.Scale renamed transforms.Resize #278

mashakhart opened this issue Apr 28, 2023 · 1 comment

Comments

@mashakhart
Copy link

line 46 in spatial_transforms.py doesn't work, since transforms.Scale has been renamed to transforms.Resize.

@clocktowerc
Copy link

The Scale transform was commonly used to resize an image, and it has been replaced by the Resize transform in newer versions of torchvision. Just search in the spatial_transforms.py file for the Scale class and replace it with Resize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants