Unidentified image error - Dreambooth Colab
See original GitHub issueToday 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:
- Created 10 months ago
- Comments:7 (3 by maintainers)
you are a life saver thank you so much !
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