fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

Unidentified image error - Dreambooth Colab

Open killerciao opened this issue 3 years ago • 6 comments

Today while trying to run a training session the colab gives me this error. I've not used the colab in the last 3/4 days (before V2 implementation). It always worked before but now gives me this error. I'm running 1.5 model not the V2. Deactivating the button "Crop_images" fix the error

| | 0/25 Uploaded

UnidentifiedImageError Traceback (most recent call last) in 41 identifier=filename.split(".")[0] 42 new_path_with_file = os.path.join(INSTANCE_DIR, filename) ---> 43 file = Image.open(IMAGES_FOLDER_OPTIONAL+"/"+filename) 44 width, height = file.size 45 if file.size !=(Crop_size, Crop_size):

/usr/local/lib/python3.7/dist-packages/PIL/Image.py in open(fp, mode) 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. 2898

UnidentifiedImageError: cannot identify image file '/content/ccecc/lssdrvlpn (1).jpg'

killerciao avatar Nov 28 '22 11:11 killerciao

fixed with !pip install -U pillow

TheLastBen avatar Nov 28 '22 11:11 TheLastBen

am having same problem i did not have this problem before pls anyone can help ??

iano0o avatar Nov 28 '22 17:11 iano0o

try !pip install pillow==8.4 then restart the runtime

TheLastBen avatar Nov 28 '22 17:11 TheLastBen

try !pip install pillow==8.4 then restart the runtime

am sorry where to put this command exactly am not soo good in running command

iano0o avatar Nov 28 '22 17:11 iano0o

tell me exactly where in which cell am using dreambooth google collab

iano0o avatar Nov 28 '22 17:11 iano0o

create a new cell and paste the code in it, then run the cell, after that it will ask you to restart the runtime, restart it, then run again the model download cell and the session cell then the images cell

TheLastBen avatar Nov 28 '22 17:11 TheLastBen

you are a life saver thank you so much !

iano0o avatar Nov 28 '22 18:11 iano0o