GithubHelp home page GithubHelp logo

Comments (5)

Airburner avatar Airburner commented on May 9, 2024

UnidentifiedImageError Traceback (most recent call last)
Cell In [35], line 26
23 return None
24 return Image.open(BytesIO(response.content)).convert("RGB")
---> 26 images = list(filter(None,[download_image(url) for url in urls]))
27 save_path = "./training_samples"
28 if not os.path.exists(save_path):

Cell In [35], line 26, in (.0)
23 return None
24 return Image.open(BytesIO(response.content)).convert("RGB")
---> 26 images = list(filter(None,[download_image(url) for url in urls]))
27 save_path = "./training_samples"
28 if not os.path.exists(save_path):

Cell In [35], line 24, in download_image(url)
22 except:
23 return None
---> 24 return Image.open(BytesIO(response.content)).convert("RGB")

File /venv/lib/python3.8/site-packages/PIL/Image.py:3008, in open(fp, mode, formats)
3006 for message in accept_warnings:
3007 warnings.warn(message)
-> 3008 raise UnidentifiedImageError(
3009 "cannot identify image file %r" % (filename if filename else fp)
3010 )

UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f0981e1e950>

from dreambooth-stable-diffusion.

jchirik avatar jchirik commented on May 9, 2024

Try restarting the kernel? I was stuck for a while but worked after restarting

from dreambooth-stable-diffusion.

Airburner avatar Airburner commented on May 9, 2024

Thanks, I think that changing file location from Gdrive to Dropbox helped.

from dreambooth-stable-diffusion.

a-straus avatar a-straus commented on May 9, 2024

Thanks, I think that changing file location from Gdrive to Dropbox helped.

Hey, wondering what you meant by this? That you were hosting your files on Dropbox but changed the URLs to Gdrive and that got you past this error? I'm having the same error hosting my photos on imgur.

EDIT: I got past this step because I was uploading my imgur files without a .png extension. I put .png on the end of the imgur url and it worked

from dreambooth-stable-diffusion.

Airburner avatar Airburner commented on May 9, 2024

Yes, it was problem with img hosting server and link, now I am using dropbox and it's ok!

from dreambooth-stable-diffusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.