module 'PIL.Image' has no attribute 'LINEAR' [workaround] #2599
cibernicola
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
built-in or not, its still controlnet - report to that repo. |
Beta Was this translation helpful? Give feedback.
1 reply
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
........
Beta Was this translation helpful? Give feedback.
All reactions