diff options
author | AdjointOperator <adjoint_operator@protonmail.com> | 2023-04-19 07:35:50 +0000 |
---|---|---|
committer | AdjointOperator <adjoint_operator@protonmail.com> | 2023-04-19 07:35:50 +0000 |
commit | dec5cdd9b89dd683f04fb904ebd8a56dfce860ae (patch) | |
tree | be0940d038093a013e3cf70751d9573e165f2c7d /modules/shared.py | |
parent | 22bcc7be428c94e9408f589966c2040187245d81 (diff) | |
download | stable-diffusion-webui-gfx803-dec5cdd9b89dd683f04fb904ebd8a56dfce860ae.tar.gz stable-diffusion-webui-gfx803-dec5cdd9b89dd683f04fb904ebd8a56dfce860ae.tar.bz2 stable-diffusion-webui-gfx803-dec5cdd9b89dd683f04fb904ebd8a56dfce860ae.zip |
add tiled inference support for ScuNET
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 5fd0eecb..056f9fc6 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -283,6 +283,8 @@ options_templates.update(options_section(('upscaling', "Upscaling"), { "ESRGAN_tile_overlap": OptionInfo(8, "Tile overlap, in pixels for ESRGAN upscalers. Low values = visible seam.", gr.Slider, {"minimum": 0, "maximum": 48, "step": 1}),
"realesrgan_enabled_models": OptionInfo(["R-ESRGAN 4x+", "R-ESRGAN 4x+ Anime6B"], "Select which Real-ESRGAN models to show in the web UI. (Requires restart)", gr.CheckboxGroup, lambda: {"choices": shared_items.realesrgan_models_names()}),
"upscaler_for_img2img": OptionInfo(None, "Upscaler for img2img", gr.Dropdown, lambda: {"choices": [x.name for x in sd_upscalers]}),
+ "SCUNET_tile": OptionInfo(256, "Tile size for SCUNET upscalers. 0 = no tiling.", gr.Slider, {"minimum": 0, "maximum": 512, "step": 16}),
+ "SCUNET_tile_overlap": OptionInfo(8, "Tile overlap, in pixels for SCUNET upscalers. Low values = visible seam.", gr.Slider, {"minimum": 0, "maximum": 64, "step": 1}),
}))
options_templates.update(options_section(('face-restoration', "Face restoration"), {
|