fast-stable-diffusion: ModuleNotFoundError: No module named 'blendmodes'

I’m getting this error, i tried from two times from different accounts, but it still happens every time.

image

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 15, in <module>
    from modules import shared, devices, sd_samplers, upscaler, extensions, localization, ui_tempdir
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_samplers.py", line 12, in <module>
    from modules import prompt_parser, devices, processing, images
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 30, in <module>
    from blendmodes.blend import blendLayers, BlendType
ModuleNotFoundError: No module named 'blendmodes'

Please help me fix this

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 18 (4 by maintainers)

Most upvoted comments

fixed

fixed, update the notebook

I’ll check it out, for now do this : !pip install pillow==8.4

After this update, i’m getting some error when adding instance images, i don’t know how. I used the same images before, and it worked perfectly. I also tried renaming the images, it didn’t worked either. image

Here is the error i’m getting:

UnidentifiedImageError                    Traceback (most recent call last)
[<ipython-input-6-ca4527be0fa8>](https://localhost:8080/#) in <module>
     73       identifier=filename.split(".")[0]
     74       new_path_with_file = os.path.join(INSTANCE_DIR, filename)
---> 75       file = Image.open(new_path_with_file)
     76       width, height = file.size
     77       if file.size !=(Crop_size, Crop_size):

[/usr/local/lib/python3.8/dist-packages/PIL/Image.py](https://localhost:8080/#) in open(fp, mode)
   2893     share memory; supported modes include "L", "RGBX", "RGBA", and "CMYK".
   2894 
-> 2895     Note that this function decodes pixel data only, not entire images.
   2896     If you have an entire image file in a string, wrap it in a
   2897     :py:class:`~io.BytesIO` object, and use :py:func:`~PIL.Image.open` to load it.

UnidentifiedImageError: cannot identify image file '/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/Model/instance_images/Savio (1).jpeg'