@@ -135,8 +135,11 @@ Find the instructions [here](https://github.com/AUTOMATIC1111/stable-diffusion-w
Here's how to add code to this repo: [Contributing](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Contributing)
## Documentation
The documentation was moved from this README over to the project's [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki).
For the purposes of getting Google and other search engines to crawl the wiki, here's a link to the (not for humans) [crawlable wiki](https://github-wiki-see.page/m/AUTOMATIC1111/stable-diffusion-webui/wiki).
## Credits
Licenses for borrowed code can be found in `Settings -> Licenses` screen, and also in `html/licenses.html` file.
shared.opts.add_option("SWIN_tile",shared.OptionInfo(192,"Tile size for all SwinIR.",gr.Slider,{"minimum":16,"maximum":512,"step":16},section=('upscaling',"Upscaling")))
shared.opts.add_option("SWIN_tile_overlap",shared.OptionInfo(8,"Tile overlap, in pixels for SwinIR. Low values = visible seam.",gr.Slider,{"minimum":0,"maximum":48,"step":1},section=('upscaling',"Upscaling")))
ifint(torch.__version__.split('.')[0])>=2andplatform.system()!="Windows":# torch.compile() require pytorch 2.0 or above, and not on Windows
shared.opts.add_option("SWIN_torch_compile",shared.OptionInfo(False,"Use torch.compile to accelerate SwinIR.",gr.Checkbox,{"interactive":True},section=('upscaling',"Upscaling")).info("Takes longer on first run"))
"canvas_hotkey_reset":shared.OptionInfo("R","Reset zoom and canvas positon"),
"canvas_hotkey_overlap":shared.OptionInfo("O","Toggle overlap").info("Technical button, neededs for testing"),
"canvas_show_tooltip":shared.OptionInfo(True,"Enable tooltip on the canvas"),
"canvas_blur_prompt":shared.OptionInfo(False,"Take the focus off the prompt when working with a canvas"),
"canvas_disabled_functions":shared.OptionInfo(["Overlap"],"Disable function that you don't use",gr.CheckboxGroup,{"choices":["Zoom","Adjust brush size","Moving canvas","Fullscreen","Reset Zoom","Overlap"]}),
@@ -107,4 +107,5 @@ parser.add_argument("--no-hashing", action='store_true', help="disable sha256 ha
parser.add_argument("--no-download-sd-model",action='store_true',help="don't download SD1.5 model even if no model is found in --ckpt-dir",default=False)
parser.add_argument('--subpath',type=str,help='customize the subpath for gradio, use with reverse proxy')
parser.add_argument('--add-stop-route',action='store_true',help='add /_stop route to stop server')
parser.add_argument('--api-server-stop',action='store_true',help='enable server stop/restart/kill via api')
parser.add_argument('--timeout-keep-alive',type=int,default=30,help='set timeout_keep_alive for uvicorn')
run(f'"{git}" -C "{dir}" fetch',f"Fetching updates for {name}...",f"Couldn't fetch {name}")
run(f'"{git}" -C "{dir}" checkout {commithash}',f"Checking out commit for {name} with hash: {commithash}...",f"Couldn't checkout commit {commithash} for {name}")
run(f'"{git}" -C "{dir}" checkout {commithash}',f"Checking out commit for {name} with hash: {commithash}...",f"Couldn't checkout commit {commithash} for {name}",live=True)
return
run(f'"{git}" clone "{url}" "{dir}"',f"Cloning {name} into {dir}...",f"Couldn't clone {name}")
run(f'"{git}" clone "{url}" "{dir}"',f"Cloning {name} into {dir}...",f"Couldn't clone {name}",live=True)
"multiple_tqdm":OptionInfo(True,"Add a second progress bar to the console that shows progress for an entire job."),
"print_hypernet_extra":OptionInfo(False,"Print extra hypernetwork information to console."),
"list_hidden_files":OptionInfo(True,"Load models/files in hidden directories").info("directory is hidden if its name starts with \".\""),
"disable_mmap_load_safetensors":OptionInfo(False,"Disable memmapping for loading .safetensors files.").info("fixes very slow loading speed in some cases"),
"keyedit_precision_attention":OptionInfo(0.1,"Ctrl+up/down precision when editing (attention:1.1)",gr.Slider,{"minimum":0.01,"maximum":0.2,"step":0.001}),
"keyedit_precision_extra":OptionInfo(0.05,"Ctrl+up/down precision when editing <extra networks:0.9>",gr.Slider,{"minimum":0.01,"maximum":0.2,"step":0.001}),
"keyedit_delimiters":OptionInfo(".,\\/!?%^*;:{}=`~()","Ctrl+up/down word delimiters"),
"quicksettings_list":OptionInfo(["sd_model_checkpoint"],"Quicksettings list",ui_components.DropdownMulti,lambda:{"choices":list(opts.data_labels.keys())}).js("info","settingsHintsShowQuicksettings").info("setting entries that appear at the top of page rather than in settings tab").needs_restart(),
"add_model_hash_to_info":OptionInfo(True,"Add model hash to generation information"),
"add_model_name_to_info":OptionInfo(True,"Add model name to generation information"),
"add_user_name_to_info":OptionInfo(False,"Add user name to generation information when authenticated"),
"add_version_to_infotext":OptionInfo(True,"Add program version to generation information"),
"disable_weights_auto_swap":OptionInfo(True,"Disregard checkpoint information from pasted infotext").info("when reading generation parameters from text into UI"),
"infotext_styles":OptionInfo("Apply if any","Infer styles from prompts of pasted infotext",gr.Radio,{"choices":["Ignore","Apply","Discard","Apply if any"]}).info("when reading generation parameters from text into UI)").html("""<ul style='margin-left: 1.5em'>
img2img_batch_inpaint_mask_dir=gr.Textbox(label="Inpaint batch mask directory (required for inpaint batch processing only)",**shared.hide_dirs,elem_id="img2img_batch_inpaint_mask_dir")
withgr.Accordion("PNG info",open=False):
img2img_batch_use_png_info=gr.Checkbox(label="Append png info to prompts",**shared.hide_dirs,elem_id="img2img_batch_use_png_info")
img2img_batch_png_info_dir=gr.Textbox(label="PNG info directory",**shared.hide_dirs,placeholder="Leave empty to use input directory",elem_id="img2img_batch_png_info_dir")
img2img_batch_png_info_props=gr.CheckboxGroup(["Prompt","Negative prompt","Seed","CFG scale","Sampler","Steps"],label="Parameters to take from png info",info="Prompts from png info will be appended to prompts set in ui.")
hide_tags=gr.CheckboxGroup(value=["ads","localization","installed"],label="Hide extensions with tags",choices=["script","ads","localization","installed"])