diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-12 12:59:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 12:59:24 +0000 |
commit | cc5803603b8591075542d99ae8596ab5b130a82f (patch) | |
tree | c3b225cf928a9d7911142ffd42afdb009736918f /modules/ui.py | |
parent | 429442f4a6aab7301efb89d27bef524fe827e81a (diff) | |
parent | 10a2de644f8ea4cfade88e85d768da3480f4c9f0 (diff) | |
download | stable-diffusion-webui-gfx803-cc5803603b8591075542d99ae8596ab5b130a82f.tar.gz stable-diffusion-webui-gfx803-cc5803603b8591075542d99ae8596ab5b130a82f.tar.bz2 stable-diffusion-webui-gfx803-cc5803603b8591075542d99ae8596ab5b130a82f.zip |
Merge pull request #2037 from AUTOMATIC1111/embed-embeddings-in-images
Add option to store TI embeddings in png chunks, and load from same.
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index 86a2da6c..2b332267 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1101,6 +1101,7 @@ def create_ui(wrap_gradio_gpu_call): num_repeats = gr.Number(label='Number of repeats for a single input image per epoch', value=100, precision=0)
create_image_every = gr.Number(label='Save an image to log directory every N steps, 0 to disable', value=500, precision=0)
save_embedding_every = gr.Number(label='Save a copy of embedding to log directory every N steps, 0 to disable', value=500, precision=0)
+ save_image_with_stored_embedding = gr.Checkbox(label='Save images with embedding in PNG chunks', value=True)
preview_image_prompt = gr.Textbox(label='Preview prompt', value="")
with gr.Row():
@@ -1179,6 +1180,7 @@ def create_ui(wrap_gradio_gpu_call): create_image_every,
save_embedding_every,
template_file,
+ save_image_with_stored_embedding,
preview_image_prompt,
],
outputs=[
|