From 90d709e2818a39a54aa8f06e18c563029812a8ac Mon Sep 17 00:00:00 2001 From: CodeExplode <79982924+CodeExplode@users.noreply.github.com> Date: Mon, 7 Nov 2022 19:34:47 +1100 Subject: [PATCH] Added note about buggy embedding guidance prompt --- scripts/embedding_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/embedding_editor.py b/scripts/embedding_editor.py index af20681..157858f 100644 --- a/scripts/embedding_editor.py +++ b/scripts/embedding_editor.py @@ -75,7 +75,7 @@ def on_ui_tabs(): save_embedding_button = gr.Button(value="Save Embedding", variant='primary') instructions = gr.HTML(f""" -
Enter words and color hexes to mark weights on the sliders for guidance. Hint: Use the txt2img prompt token counter or webui-tokenizer to see which words are constructed using multiple sub-words, e.g. 'computer' doesn't exist in stable diffusion's CLIP dictionary and instead 'compu' and 'ter' are used (1 word but 2 embedding vectors) +
Enter words and color hexes to mark weights on the sliders for guidance. Hint: Use the txt2img prompt token counter or webui-tokenizer to see which words are constructed using multiple sub-words, e.g. 'computer' doesn't exist in stable diffusion's CLIP dictionary and instead 'compu' and 'ter' are used (1 word but 2 embedding vectors). Currently buggy and needs a moment to process before pressing the button. If it doesn't work after a moment, try adding a random space to refresh it.
""") with gr.Row(): @@ -275,4 +275,4 @@ def update_guidance_embeddings(text): return [] -script_callbacks.on_ui_tabs(on_ui_tabs) \ No newline at end of file +script_callbacks.on_ui_tabs(on_ui_tabs)