question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unidentified image error - Dreambooth Colab

See original GitHub issue

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) <ipython-input-9-9713a67e012d> in <module> 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’

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iano0ocommented, Nov 28, 2022

you are a life saver thank you so much !

0reactions
TheLastBencommented, Nov 28, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dream booth unidentified image !?? · Issue #3252 - GitHub
am training using dream booth google collab https://colab.research.google.com/ ... when i get to the point where i need to upload the images this...
Read more >
UnidentifiedImageError: cannot identify image file
I have run into this problem previously. So I developed a python script to test the training and test directories for valid image...
Read more >
I have a problem with img2img (Google Colab) - Reddit
When I get the url image, the colab give me this error… ... else fp) 2897 ) 2898 UnidentifiedImageError: cannot identify image file...
Read more >
How to Use DreamBooth to Fine-Tune Stable Diffusion (Colab)
In this tutorial, we'll cover the basics of fine-tuning Stable Diffusion with DreamBooth to generate your own customized images using Google Colab, for...
Read more >
fast-DreamBooth.ipynb - Colaboratory - Google Colab
The most importent step is to rename the instance pictures of each subject to a unique unknown identifier, example : If you have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found