mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
Add option for faster live interrupt
This commit is contained in:
parent
541ef9247c
commit
3ce5fb8e5c
2 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ approximation_indexes = {"Full": 0, "Approx NN": 1, "Approx cheap": 2, "TAESD":
|
|||
|
||||
def samples_to_images_tensor(sample, approximation=None, model=None):
|
||||
'''latents -> images [-1, 1]'''
|
||||
if approximation is None:
|
||||
if approximation is None or (shared.state.interrupted and opts.live_preview_fast_interrupt):
|
||||
approximation = approximation_indexes.get(opts.show_progress_type, 0)
|
||||
|
||||
if approximation == 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue