module 'PIL.Image' has no attribute 'LINEAR' [workaround] #2298
cibernicola
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using controlnet (builtin version) + segmentation seg_ufade20k model resulting in:
Workaround:
replace Image.LINEAR with Image.BILINEAR in line 46 within file automatic\extensions-builtin\sd-webui-controlnet\annotator\oneformer\detectron2\data\transforms\transform.py
https://pillow.readthedocs.io/en/stable/deprecations.html
Constants Deprecated since version 9.1.0.
Removed in version 10.0.0.
A number of constants have been removed. Instead, enum.IntEnum classes have been added.
Additional Image constants were deprecated in Pillow 9.1.0, but that was reversed in Pillow 9.4.0 and those constants will now remain available.
Removed | Use instead
Image.LINEAR | Image.BILINEAR or Image.Resampling.BILINEAR
........
Originally posted by @cibernicola in vladmandic/automatic#2599
Beta Was this translation helpful? Give feedback.
All reactions