pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

Tiled Diffusion and VAE optimize, licensed under CC BY-NC-SA 4.0
Other
4.73k stars 334 forks source link

use inputaccordions #373

Closed light-and-ray closed 6 months ago

light-and-ray commented 6 months ago

To allow enabling with no opening the accordions. I find it very important especially for this extension, because user sets all settings 1 time according to their vram, and opens it later almost only to enable it

Screenshot_20240328_192801

For sd-webui 1.6 it works the same as before

Screenshot_20240328_192632

btw: is it correct for tiled vae? uid = lambda name: f'MD-{tab}-{name}' Maybe should be MDV

Kahsolt commented 6 months ago

merged, but I have a question, how is this opts.hypertile_enable_unet related to ui_components.InputAccordion I mean, why not just try..expect it?

try:
    from modules.ui_components import InputAccordion    # since webui >= 1.7
except:
    InputAccordion = None
light-and-ray commented 6 months ago

merged, but I have a question, how is this opts.hypertile_enable_unet related to ui_components.InputAccordion I mean, why not just try..expect it?

Because webui 1.6 has input accordion, but it doesn't have visible checkbox. It was used in hires fix, and only enabled when input accordion is open