stable-diffusion-webui-embedding-editor icon indicating copy to clipboard operation
stable-diffusion-webui-embedding-editor copied to clipboard

Nearly fixed it!

Open Iluvalar opened this issue 1 year ago • 0 comments

First embedding_editor.py needed to from modules.call_queue import wrap_gradio_gpu_call instead of from webui. because of this edit: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/95821f0132f5437ef30b0dbcac7c51e55818c18f

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

Iluvalar avatar Jun 26 '24 20:06 Iluvalar