Comments (5)
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.
Try restarting the kernel? I was stuck for a while but worked after restarting
from dreambooth-stable-diffusion.
Thanks, I think that changing file location from Gdrive to Dropbox helped.
from dreambooth-stable-diffusion.
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.
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)
- Error while saving pretrained model
- StableDiffusionPipeline load pretrained models and learned_embeds_dict from different directories HOT 1
- setuptools==58.5.0 HOT 1
- NameError: name 'trainer' is not defined HOT 8
- Does dreambooth support multi-subjects training? HOT 12
- Training on a model other than SD 1.5 HOT 6
- Regularization step always stops almost at the end HOT 1
- Conda OOM issue locally HOT 1
- Upload Images in Dreambooth Training Environment Setup fails on dreambooth_joepenna.ipynb HOT 4
- num_samples should be a positive integer value, but got num_samples=0 HOT 1
- "No training images provided" error HOT 5
- Establish a baseline with a sample set of training images HOT 1
- Ubuntu Running Error HOT 9
- ImportError: cannot import name '_PATH' from 'pytorch_lightning.utilities.types'
- support freezing text_encoder layers for OpenCLIP
- how to train x4-upscaling? HOT 1
- OutOfMemoryError: CUDA out of memory (WHY?) HOT 2
- Failure in installation step 2: ERROR: file:///content does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. HOT 2
- pickle.UnpicklingError: invalid load key - Issue Using Safetensor training model HOT 1
- Torch Install Failure: "raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dreambooth-stable-diffusion.