diff options
author | AbstractQbit <38468635+AbstractQbit@users.noreply.github.com> | 2022-12-24 11:00:17 +0000 |
---|---|---|
committer | AbstractQbit <38468635+AbstractQbit@users.noreply.github.com> | 2022-12-24 11:00:17 +0000 |
commit | 11dd79e346bd780bc5c3119df962e7a9c20f2493 (patch) | |
tree | 9c4e0d2ed5a2724e88ab62c627661df301d13656 /modules/shared.py | |
parent | ca162781889331c95c4e0762fc7ff4e965de1c30 (diff) | |
download | stable-diffusion-webui-gfx803-11dd79e346bd780bc5c3119df962e7a9c20f2493.tar.gz stable-diffusion-webui-gfx803-11dd79e346bd780bc5c3119df962e7a9c20f2493.tar.bz2 stable-diffusion-webui-gfx803-11dd79e346bd780bc5c3119df962e7a9c20f2493.zip |
Add an option for faster low quality previews
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py index 8ea3b441..1067b1d3 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -212,9 +212,9 @@ class State: import modules.sd_samplers
if opts.show_progress_grid:
- self.current_image = modules.sd_samplers.samples_to_image_grid(self.current_latent)
+ self.current_image = modules.sd_samplers.samples_to_image_grid(self.current_latent, approximation=opts.show_progress_approximate)
else:
- self.current_image = modules.sd_samplers.sample_to_image(self.current_latent)
+ self.current_image = modules.sd_samplers.sample_to_image(self.current_latent, approximation=opts.show_progress_approximate)
self.current_image_sampling_step = self.sampling_step
@@ -391,6 +391,7 @@ options_templates.update(options_section(('interrogate', "Interrogate Options"), options_templates.update(options_section(('ui', "User interface"), {
"show_progressbar": OptionInfo(True, "Show progressbar"),
"show_progress_every_n_steps": OptionInfo(0, "Show image creation progress every N sampling steps. Set to 0 to disable. Set to -1 to show after completion of batch.", gr.Slider, {"minimum": -1, "maximum": 32, "step": 1}),
+ "show_progress_approximate": OptionInfo(False, "Calculate small previews using fast linear approximation instead of VAE"),
"show_progress_grid": OptionInfo(True, "Show previews of all images generated in a batch as a grid"),
"return_grid": OptionInfo(True, "Show grid in results for web"),
"do_not_show_images": OptionInfo(False, "Do not show any images in results for web"),
|