-
Notifications
You must be signed in to change notification settings - Fork 7k
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
torchvision transforms broken by Pillow 7.0 release #1714
Comments
I can confirm this issue when installing https://download.pytorch.org/whl/cpu/torchvision-0.4.2%2Bcpu-cp36-cp36m-linux_x86_64.whl |
I still get version 7.0.0 when I install using the following command pip3 install torch===1.3.1 torchvision===0.4.2 -f https://download.pytorch.org/whl/torch_stable.html or even using the following command pip3 install torch===1.3.1 torchvision===0.4.2 -f https://download.pytorch.org/whl/torch_stable.html |
It seems like it was fixed here a few months ago: b8ef532 But there hasn't been a release that includes it. |
Duplicate of #1712:
|
As @hugovk mentioned in #1714 (comment), we will be releasing a new version of torchvision early next week, so I believe this can be closed. Thanks for the reports! |
@fmassa thank you for being so responsive! |
Thank you! |
@DB11051998 FYI you need to import it via |
🐛 Bug
Pillow just released 7.0.0. This breaks torchvision.transforms as the import fails:
https://github.com/python-pillow/Pillow/releases
To Reproduce
run
from torchvision.transforms import Compose
Environment
torch==1.3.1
torchvision==0.4.2
torchvision==7.0.0
Fix
I pinned pillow to version 6.2.2. After this the import works again
The text was updated successfully, but these errors were encountered: