diff options
author | d8ahazard <d8ahazard@gmail.com> | 2022-09-21 13:06:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 13:06:37 +0000 |
commit | 1a1f7e85c772e48ed923470f62ec2d32f9ff361f (patch) | |
tree | b7723e3223c4acb7be998adf66f8fbfc7ef06981 /modules/shared.py | |
parent | d6e8d85e30443510b83ad3dc0e8b28e366391e1e (diff) | |
download | stable-diffusion-webui-gfx803-1a1f7e85c772e48ed923470f62ec2d32f9ff361f.tar.gz stable-diffusion-webui-gfx803-1a1f7e85c772e48ed923470f62ec2d32f9ff361f.tar.bz2 stable-diffusion-webui-gfx803-1a1f7e85c772e48ed923470f62ec2d32f9ff361f.zip |
Add LDSR and "GoLatent?" Upscaling (#763)
* Add LDSR Upscaling
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 6ce831b7..280d6c4c 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -144,6 +144,12 @@ class Options: "ESRGAN_tile_overlap": OptionInfo(8, "Tile overlap, in pixels for ESRGAN upscalers. Low values = visible seam.", gr.Slider, {"minimum": 0, "maximum": 48, "step": 1}),
"SWIN_tile": OptionInfo(192, "Tile size for all SwinIR.", gr.Slider, {"minimum": 16, "maximum": 512, "step": 16}),
"SWIN_tile_overlap": OptionInfo(8, "Tile overlap, in pixels for SwinIR. Low values = visible seam.", gr.Slider, {"minimum": 0, "maximum": 48, "step": 1}),
+ "ldsr_steps": OptionInfo(100, "LDSR processing steps. Lower = faster",
+ gr.Slider, {"minimum": 1, "maximum": 200, "step": 1}),
+ "ldsr_pre_down":OptionInfo(1, "LDSR Pre-process downssample scale. 1 = no down-sampling, 4 = 1/4 scale.",
+ gr.Slider, {"minimum": 1, "maximum": 4, "step": 1}),
+ "ldsr_post_down":OptionInfo(1, "LDSR Post-process down-sample scale. 1 = no down-sampling, 4 = 1/4 scale.",
+ gr.Slider, {"minimum": 1, "maximum": 4, "step": 1}),
"random_artist_categories": OptionInfo([], "Allowed categories for random artists selection when using the Roll button", gr.CheckboxGroup, {"choices": artist_db.categories()}),
"upscale_at_full_resolution_padding": OptionInfo(16, "Inpainting at full resolution: padding, in pixels, for the masked region.", gr.Slider, {"minimum": 0, "maximum": 128, "step": 4}),
"upscaler_for_hires_fix": OptionInfo(None, "Upscaler for highres. fix", gr.Radio, lambda: {"choices": [x.name for x in sd_upscalers]}),
|