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

AttributeError: module ‘torchvision.transforms’ has no attribute ‘Scale’ #24

Closed
gipster opened this issue Jun 7, 2022 · 3 comments

Comments

@gipster
Copy link
Contributor

gipster commented Jun 7, 2022

Hi

I got this error running your code

AttributeError: module ‘torchvision.transforms’ has no attribute ‘Scale’

I'm using torchvision 0.12, and Scale was deprecated in favour of Resize

Modifying this line of code fixes it.

@Cyanogenoid
Copy link
Owner

If you make a pull request with that change, I'll merge it.

@gipster
Copy link
Contributor Author

gipster commented Jun 15, 2022

Hey. Sorry for the delay. Just opened a PR for that.

@Cyanogenoid
Copy link
Owner

Thanks for the PR!

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