Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to training embedding #27

Closed
cdefghijkl opened this issue Jan 2, 2023 · 3 comments
Closed

Error when trying to training embedding #27

cdefghijkl opened this issue Jan 2, 2023 · 3 comments

Comments

@cdefghijkl
Copy link

It's a known error when trying to training embedding. How to solve this is by add a line of code to ddpm.py or just run this code after stopping auto1111 after loading:

!sed -i '/logvar_t = self.*/i \ \ \ \ \ \ \ \ self.logvar = self.logvar.to(self.device)' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/models/diffusion/ddpm.py

Screenshot 2023-01-02 at 14-12-53 Google Colaboratory

@camenduru
Copy link
Owner

@camenduru
Copy link
Owner

also you can check this #17

@cdefghijkl
Copy link
Author

OK got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants