new_hypernetwork_layer_structure=gr.Textbox("1, 2, 1",label="Enter hypernetwork layer structure",placeholder="1st and last digit must be 1. ex:'1, 2, 1'",elem_id="train_new_hypernetwork_layer_structure")
new_hypernetwork_layer_structure=gr.Textbox("1, 2, 1",label="Enter hypernetwork layer structure",placeholder="1st and last digit must be 1. ex:'1, 2, 1'",elem_id="train_new_hypernetwork_layer_structure")
gr.HTML(value="<p style='margin-bottom: 0.7em'>Train an embedding or Hypernetwork; you must specify a directory with a set of 1:1 ratio images <a href=\"https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion\" style=\"font-weight:bold;\">[wiki]</a></p>")
gr.HTML(value="<p style='margin-bottom: 0.7em'>Train an embedding or Hypernetwork; you must specify a directory with a set of 1:1 ratio images <a href=\"https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion\" style=\"font-weight:bold;\">[wiki]</a></p>")
reload_script_bodies=gr.Button(value='Reload custom script bodies (No ui updates, No restart)',variant='secondary',elem_id="settings_reload_script_bodies")
reload_script_bodies=gr.Button(value='Reload custom script bodies (No ui updates, No restart)',variant='secondary',elem_id="settings_reload_script_bodies")
...
@@ -1487,7 +1490,7 @@ def create_ui():
...
@@ -1487,7 +1490,7 @@ def create_ui():
unload_sd_model=gr.Button(value='Unload SD checkpoint to free VRAM',elem_id="sett_unload_sd_model")
unload_sd_model=gr.Button(value='Unload SD checkpoint to free VRAM',elem_id="sett_unload_sd_model")
reload_sd_model=gr.Button(value='Reload the last SD checkpoint back into VRAM',elem_id="sett_reload_sd_model")
reload_sd_model=gr.Button(value='Reload the last SD checkpoint back into VRAM',elem_id="sett_reload_sd_model")
available_extensions_index=gr.Text(value="https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui-extensions/master/index.json",label="Extension index URL").style(container=False)
available_extensions_index=gr.Text(value="https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui-extensions/master/index.json",label="Extension index URL").style(container=False)
withgr.TabItem('Batch from Directory',elem_id="extras_batch_directory_tab")astab_batch_dir:
withgr.TabItem('Batch from Directory',id="batch_from_directory",elem_id="extras_batch_directory_tab")astab_batch_dir:
extras_batch_input_dir=gr.Textbox(label="Input directory",**shared.hide_dirs,placeholder="A directory on the same machine where the server is running.",elem_id="extras_batch_input_dir")
extras_batch_input_dir=gr.Textbox(label="Input directory",**shared.hide_dirs,placeholder="A directory on the same machine where the server is running.",elem_id="extras_batch_input_dir")
extras_batch_output_dir=gr.Textbox(label="Output directory",**shared.hide_dirs,placeholder="Leave blank to save images to the default path.",elem_id="extras_batch_output_dir")
extras_batch_output_dir=gr.Textbox(label="Output directory",**shared.hide_dirs,placeholder="Leave blank to save images to the default path.",elem_id="extras_batch_output_dir")
show_extras_results=gr.Checkbox(label='Show result images',value=True,elem_id="extras_show_extras_results")
show_extras_results=gr.Checkbox(label='Show result images',value=True,elem_id="extras_show_extras_results")