You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception while training: cannot identify image file '/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/numpy/core/tests/data/recarray_from_file.fits'
Allocated: 5.7GB
Reserved: 13.3GB
Traceback (most recent call last):
File "/home/kasm-user/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/train_dreambooth.py", line 987, in main
for step, batch in enumerate(train_dataloader):
File "/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/accelerate/data_loader.py", line 383, in __iter__
next_batch = next(dataloader_iter)
File "/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 681, in __next__
data = self._next_data()
File "/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 721, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/kasm-user/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/SuperDataset.py", line 270, in __getitem__
class_image = Image.open(class_data.image)
File "/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/PIL/Image.py", line 3147, in open
raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file '/home/kasm-user/stable-diffusion-webui/venv/lib/python3.8/site-packages/numpy/core/tests/data/recarray_from_file.fits''
If anyone else runs into this issues, here is the solution.
There is an easy fix. Just reset your app and just go into txt2img and generate a random image. Then this will be solved.
I think this happens sometimes when you do something or delete a file and it corrupts recarray_from_file.fits
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If anyone else runs into this issues, here is the solution.
There is an easy fix. Just reset your app and just go into txt2img and generate a random image. Then this will be solved.
I think this happens sometimes when you do something or delete a file and it corrupts recarray_from_file.fits
I found this solution here https://www.reddit.com/r/StableDiffusion/comments/x9y00k/i_have_a_problem_with_img2img_google_colab/
If you are interested to see the source and give him credit.
Beta Was this translation helpful? Give feedback.
All reactions