mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-11 21:00:46 -08:00
move some settings to the new Optimization page
add slider for token merging for img2img rework StableDiffusionProcessing to have the token_merging_ratio field fix a bug with applying png optimizations for live previews when they shouldn't be applied
This commit is contained in:
parent
f6c06e3ed2
commit
9fd6c1e343
4 changed files with 55 additions and 45 deletions
|
|
@ -98,7 +98,11 @@ def progressapi(req: ProgressRequest):
|
|||
|
||||
if opts.live_previews_image_format == "png":
|
||||
# using optimize for large images takes an enormous amount of time
|
||||
save_kwargs = {"optimize": max(*image.size) > 256}
|
||||
if max(*image.size) <= 256:
|
||||
save_kwargs = {"optimize": True}
|
||||
else:
|
||||
save_kwargs = {"optimize": False, "compress_level": 1}
|
||||
|
||||
else:
|
||||
save_kwargs = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue