aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-02 16:42:10 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-01-02 16:42:10 +0000
commitef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d (patch)
treeb41a5ed7bb131a6c2e61a66b78ac4f6f375eeafd /modules/shared.py
parentfd4461d44c7256d56889f5b5ed9fb660a859172f (diff)
downloadstable-diffusion-webui-gfx803-ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d.tar.gz
stable-diffusion-webui-gfx803-ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d.tar.bz2
stable-diffusion-webui-gfx803-ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d.zip
Hires fix rework
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 7f430b93..b65559ee 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -327,7 +327,6 @@ 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": realesrgan_models_names()}),
"upscaler_for_img2img": OptionInfo(None, "Upscaler for img2img", gr.Dropdown, lambda: {"choices": [x.name for x in sd_upscalers]}),
- "use_scale_latent_for_hires_fix": OptionInfo(False, "Upscale latent space image when doing hires. fix"),
}))
options_templates.update(options_section(('face-restoration', "Face restoration"), {
@@ -545,6 +544,12 @@ opts = Options()
if os.path.exists(config_filename):
opts.load(config_filename)
+latent_upscale_default_mode = "Latent"
+latent_upscale_modes = {
+ "Latent": "bilinear",
+ "Latent (nearest)": "nearest",
+}
+
sd_upscalers = []
sd_model = None