10000 Nearly fixed it! · Issue #13 · CodeExplode/stable-diffusion-webui-embedding-editor · GitHub
[go: up one dir, main page]

Skip to content

Nearly fixed it! #13

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

Open
Iluvalar opened this issue Jun 26, 2024 · 0 comments
Open

Nearly fixed it! #13

Iluvalar opened this issue Jun 26, 2024 · 0 comments

Comments

@Iluvalar
Copy link
Iluvalar commented Jun 26, 2024

First embedding_editor.py needed to
from modules.call_queue import wrap_gradio_gpu_call
instead of from webui. because of this edit: AUTOMATIC1111/stable-diffusion-webui@95821f0

Next, you need to add in the command line
--disable-safe-unpickle
There might be a workaround for this, but i don't even know python!

Lastly, change line
251 from save_embedding(embedding, False, checkpoint, embedding_name, filename, remove_cached_checksum=True) to
embedding.save(filename)

I have only 1 problem left:
It seems like the script cache the embeddings somehow and doesn't refresh them. I can go around this by copy paste a new embedding in my folder everytime between edit, and refer to the new copy. But it's pretty annoying. At least the rest works now.

embedding_editor.zip

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

1 participant
0