Closed vmarois closed 5 years ago
I should have clear up what it happening:
python setup.py install
) should require the latest version of torchvision (currently 0.2.1
) as we get an error: AttributeError: module 'torchvision.transforms' has no attribute 'Resize'
with torchvision<=0.2.0
. It's also best if we do not have that version constraint at all.torchvision<=0.2.0
as 0.2.1
seems to cause the error: AttributeError: module 'PIL.Image' has no attribute 'LANCZOS'
. I am not sure where this is coming from. My guess is on the docker environment of readthedocs.So the current solution is to not use python setup.py install
for the doc build (which is slower anyway), but to instead point to a requirement file containing torchvision==0.2.0
. This allows to separate these 2 build processes.
Closing this for now.
had to use torchvision 0.2.0 to get the doc build successful for the first time but seems to be causing an error with
Resize
(wasn't showing up with 0.2.1)