Closed z744364418p closed 6 years ago
Several versions of torchvision.transforms do not include Resize. Try updating your torchvision.
transforms.Resize(256) AttributeError: module 'torchvision.transforms' has no attribute 'Resize' transforms.TenCrop(224), AttributeError: module 'torchvision.transforms' has no attribute 'TenCrop' It's basically the same error. I was using torchvision 0.3.0 which showed this error. After which I uninstalled and used torchvision 0.2.0 Could you help in which version of torchvision should I be using this?
@aayushkumarjvs Clone this latest transforms.py, place it in your own project and import it manually.
I can use torchvision0.1.x but can not use torchvision0.3.x, it keeps showing error: ImportError: DLL load failed: can't find module
module 'torchvision.transforms' has no attribute 'Resize',这个怎么解决