Cyanogenoid / pytorch-vqa

Strong baseline for visual question answering
238 stars 97 forks source link

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

Closed gipster closed 2 years ago

gipster commented 2 years ago

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 commented 2 years ago

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

gipster commented 2 years ago

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

Cyanogenoid commented 2 years ago

Thanks for the PR!