diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-10 14:05:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 14:05:32 +0000 |
commit | 36762f0eaf04c270dde23849cb198446ecdc4100 (patch) | |
tree | 879b63e94d986f8d4fb30d65ee5aa4ae45f3e640 /modules/shared_options.py | |
parent | 959404e0e29531d24f2e02088bf0399f4b9db15b (diff) | |
parent | ac8a5d18d3ede6bcb8fa5a3da1c7c28e064cd65d (diff) | |
download | stable-diffusion-webui-gfx803-36762f0eaf04c270dde23849cb198446ecdc4100.tar.gz stable-diffusion-webui-gfx803-36762f0eaf04c270dde23849cb198446ecdc4100.tar.bz2 stable-diffusion-webui-gfx803-36762f0eaf04c270dde23849cb198446ecdc4100.zip |
Merge pull request #12371 from AUTOMATIC1111/refiner
initial refiner support
Diffstat (limited to 'modules/shared_options.py')
-rw-r--r-- | modules/shared_options.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared_options.py b/modules/shared_options.py index 9ae51f18..1e5b64ea 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -140,6 +140,8 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "upcast_attn": OptionInfo(False, "Upcast cross attention layer to float32"),
"randn_source": OptionInfo("GPU", "Random number generator source.", gr.Radio, {"choices": ["GPU", "CPU", "NV"]}).info("changes seeds drastically; use CPU to produce the same picture across different videocard vendors; use NV to produce same picture as on NVidia videocards"),
"tiling": OptionInfo(False, "Tiling", infotext='Tiling').info("produce a tileable picture"),
+ "sd_refiner_checkpoint": OptionInfo("None", "Refiner checkpoint", gr.Dropdown, lambda: {"choices": ["None"] + shared_items.list_checkpoint_tiles()}, refresh=shared_items.refresh_checkpoints, infotext="Refiner").info("switch to another model in the middle of generation"),
+ "sd_refiner_switch_at": OptionInfo(1.0, "Refiner switch at", gr.Slider, {"minimum": 0.01, "maximum": 1.0, "step": 0.01}, infotext='Refiner switch at').info("fraction of sampling steps when the swtch to refiner model should happen; 1=never, 0.5=switch in the middle of generation"),
}))
options_templates.update(options_section(('sdxl', "Stable Diffusion XL"), {
|