SakeTami
sxela
sxela

patreon


fix for UnidentifiedImageError: cannot identify image file

May happen because of an update in PIL (pillow) python package version during the runtime. It extracted the image with one version and tries to read with another one.  If you still need to update/finish some installs - do that and then restart the runtime and extract those image files again. You may have to delete that folder manually.

you can also go deeper:

Before running anything, go to Edit - Find (Gtrl+G), find, and remove the lines in different cells (1 at a time):

!python -m pip -q install --ignore-installed Pillow==6.2.2
import timm
from ldm.modules.midas.api import load_midas_transform
midas_tfm = load_midas_transform("dpt_hybrid")

you won't be able to use v2 depth model, but it's pretty useless anyway since we have depth controlnet

comment by
Rare Candy

Quick note to those who aren't too familiar with code. If you copy and paste from here it will add a space on the end. Make sure and delete that before trying to find. Make sure and save before running again.


Notebooks with the fix:

v0.24.5
https://www.patreon.com/posts/stable-v0-24-89857319

v0.23.15
https://www.patreon.com/posts/stable-v0-23-89400650

v0.20.19
https://www.patreon.com/posts/stable-v0-20-xl-87886891

Comments

you need to run all cells, this error means you haven't run any cells

Warpfusion

NameError Traceback (most recent call last) in () 3 4 cell_name = 'do_the_run' ----> 5 check_execution(cell_name) 6 7 only_preview_controlnet = False #@param {'type':'boolean'} NameError: name 'check_execution' is not defined

Jean Saez

Im getting this in DO THE RUN:

Jean Saez


More Creators