0

on:https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/sd_textual_inversion_training.ipynb?authuser=1#scrollTo=tAZq3vFDcFiT

name:sd_textual_inversion_training.ipynb

images seem of the fine size of 512x512

I got this error:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-11-ea66470cfa23> in <module>
     11   return Image.open(BytesIO(response.content)).convert("RGB")
     12 
---> 13 images = list(filter(None,[download_image(url) for url in urls]))
     14 save_path = "./my_concept"
     15 if not os.path.exists(save_path):

3 frames
/usr/local/lib/python3.7/dist-packages/PIL/ImageFile.py in load(self)
    245                                     raise OSError(
    246                                         "image file is truncated "
--> 247                                         "(%d bytes not processed)" % len(b)
    248                                     )
    249 

OSError: image file is truncated (86 bytes not processed)

I uploaded the square images to https://imgbb.com/ and i was hoping to see the preview on the next step but I cannot.

one example of the image i used "https://i.ibb.co/LNLdmVZ/76-Final-glitched-etherium-Abstract-color-curated-NFT-painting-symmetric-art-artwork-by-new-Niu-Da-V.jpg",

0 Answers0