question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Training v2 text encoder on free colab gives an error

See original GitHub issue

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 image

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)

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jvkapcommented, Dec 8, 2022

The TI problem are Automatic1111 problem.

The Cuda error probably Ben can solve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: Textual inversion no longer works in colab #5523 - GitHub
When I try starting training in colab, this error happens: Preparing dataset. ... Training v2 text encoder on free colab gives an error...
Read more >
Restore Tensorflow Model Failed in Google Colab
After training my model on Google Colab, I want to save it and then restore it for testing purposes. I am able to...
Read more >
stable_diffusion.ipynb - Colaboratory - Google Colab
It's trained on 512x512 images from a subset of the LAION-5B database. This model uses a frozen CLIP ViT-L/14 text encoder to condition...
Read more >
Transformer on Google Colab for Machine Translation (2) | by ...
A Transformer Tutorial on Google Colab, Provided by Google TensorFlow. ... Error occurs due to the deprecation of “tfds.features.text”.
Read more >
Error in creating training data set in google colab
Hello all, I am trying to create a training set for DLC in Google Colab using the template provided. I keep getting an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found