fast-stable-diffusion
fast-stable-diffusion copied to clipboard
Training v2 text encoder on free colab gives an error
Im training v2 dreambooth on 768x (but error is still even on 512x)
After first step of text encoder training it give this
Sry for the format, it disappears fast

I tried again like 20 times, but every time got the same error
OFFTOP
When i try to train TI with v2 768x, i got this
Training at rate of 0.005 until step 500 Preparing dataset... 100% 20/20 [00:17<00:00, 1.11it/s] 0% 0/500 [00:00<?, ?it/s]Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 328, in train_embedding loss = shared.sd_model(x, c)[0] / gradient_step File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, **kwargs) File "/content/gdrive/MyDrive/sd/stablediffusion/ldm/models/diffusion/ddpm.py", line 846, in forward return self.p_losses(x, c, t, *args, **kwargs) File "/content/gdrive/MyDrive/sd/stablediffusion/ldm/models/diffusion/ddpm.py", line 903, in p_losses logvar_t = self.logvar[t].to(self.device) RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
The TI problem are Automatic1111 problem.
The Cuda error probably Ben can solve.
Use the dreambooth colab for V2 Training https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb
I just trained a model and the V2.1 is impressive https://huggingface.co/TheLastBen/froggy-style-v21-768
I got this error in fast-dreambooth colab from main page (same link, i double checked)
try
!pip show xformers see if it's installed
try
!pip show xformerssee if it's installed
There is

maybe this will help you
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5523#issuecomment-1343041303