-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
PIL.Image.LINEAR
no longer exists
#5010
Comments
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. |
cc @ppwwyyxx |
The latest commit to |
Thanks! Do you have a plan for a release, even a minor version? |
The change has been committed to the mainline so you should be able to install directly from Git and pip. |
Thanks for the fix. Closing the issue as completed. |
I'm still facing this issue -> AttributeError: module 'PIL.Image' has no attribute 'LINEAR' |
Try installing at the point where the issue was first fixed:
|
Summary: As reported in facebookresearch/detectron2#5010, `PIL.Image.LINEAR` no longer exists. The Pillow requirement in `detectron2` isn't pinned, so old `detectron2` is installing the latest Pillow and causing errors in the TorchBench tests. Pull Request resolved: #1799 Reviewed By: xuzhao9 Differential Revision: D47928411 Pulled By: msaroufim fbshipit-source-id: 36fd447475c66c0db643b04cffd1fc8b5d4ca17f
The Pillow 10.0.0 is released on July 1 and deprecated PIL.Image.LINEAR in favor or PIL.Image.BILINEAR. See [detectron2 issue](facebookresearch/detectron2#5010) for the fix
Hi, I still have this issue but I don't figure out how to fix it ... Can someone help me ?? |
Hi, I'm facing the same issue, "AttributeError: module 'PIL.Image' has no attribute 'LINEAR' Fixed by downgrade 'pillow=9.1.0' |
just run |
I had torch installed properly then still get the issue.
…On Wed, 20 Sep 2023 at 4:00 pm, Rabbitzzc ***@***.***> wrote:
Hi, I'm facing the same issue, "AttributeError: module 'PIL.Image' has no
attribute 'LINEAR' And can't install 'python3 -m pip install -U 'git+
***@***.***''
properly, there is error 'ModuleNotFoundError: No module named 'torch'' BUT
I do have torch=2.0.1 and pip=23.2.1.
Fixed by downgrade 'pillow=9.1.0'
just run pip3 install torch
—
Reply to this email directly, view it on GitHub
<#5010 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU7BX4YNBOZMXXMKE2IHCILX3KEO7ANCNFSM6AAAAAAZ4BWPNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
run |
This commit solve the issue discussed here: facebookresearch#5010 For `windows` branch
Right, It works. |
Pillow 10.0.0
is released on July 1.The previous warning
is now an exception.
In
detectron2
, there are still usage ofPIL.Image.LINEAR
, fro example,(
detectron2/detectron2/data/transforms/transform.py
Line 46 in 67ac149
It would be great if such usage could be updated to avoid failure. Thank you 🙏
The text was updated successfully, but these errors were encountered: