You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: module 'PIL.Image' has no attribute 'LINEAR' #187
I believe if you pip install Pillow==9.5.0, that can address the issue, although now I'm running into "AssertionError: Checkpoint .../model_final.pth not found!", so that's fun.
Reacted by Ciarán Finn, Hao Wang, Rabbitzzc, Sam Yu, Dkdatavid, hamza-projectz, Nikolai Krot, Qianli Ma, kllis, Eldo-rado and 2 more
Activity
risk-seeking commentedon Aug 15, 2023
I believe if you pip install Pillow==9.5.0, that can address the issue, although now I'm running into "AssertionError: Checkpoint .../model_final.pth not found!", so that's fun.
Rabbitzzc commentedon Sep 20, 2023
refer: facebookresearch/detectron2#5010 (comment)
fixed by
python3 -m pip install -U 'git+https://github.com/facebookresearch/detectron2.git@ff53992b1985b63bd3262b5a36167098e3dada02'yudataguy commentedon Sep 22, 2023
Install dectron2 0.6 and Pillow==9.50 fixed this issue.
sdy623 commentedon Sep 27, 2023
In the Pillow's 10.0 version the PIL.Image.LINEAR is deprecated and will be removed in Pillow 10, you should change it with Resampling.BILINEAR
snimavat commentedon Sep 4, 2024
This fixed it for me
But now i am getting another error
Checkpoint /Users/sudhir/.torch/iopath_cache/s/h7th27jfv19rxiy/model_final.pth not found!snimavat commentedon Sep 4, 2024
Downgrading pillow : pip install pillow==9.5.0 solved it for me