arnoweng / CheXNet

A pytorch reimplementation of CheXNet
577 stars 221 forks source link

module 'torchvision.transforms' has no attribute 'Resize' #17

Closed z744364418p closed 6 years ago

z744364418p commented 6 years ago

module 'torchvision.transforms' has no attribute 'Resize',这个怎么解决

arnoweng commented 6 years ago

Several versions of torchvision.transforms do not include Resize. Try updating your torchvision.

aayushkumarjvs commented 6 years ago

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?

arnoweng commented 6 years ago

@aayushkumarjvs Clone this latest transforms.py, place it in your own project and import it manually.

Yonggie commented 5 years ago

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