Derp Learning

Derp Learning 

использую ИИ не по назначению

273subscribers

65posts

UnidentifiedImageError: cannot identify image file error

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.
1.Do the 1st run with default settings (skip_install off), until error
2.Enable skip_install in cell 1.3
3.Restart and run all
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
спасибо! весь день мучался и не понимал в чем дело, после удаления строк все заработало!
Evgeny Kolodeznikov, подскажите, пожалуйста, подробнее, где найти эти строчки? мучаюсь какой день...
Елена Баранова, я просто вбивал в поиске и все нашлось, не нужно самим искать
Go up