mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 06:30:44 +02:00
f8bd53a96b
taesd_layers < 3 drops spatial upsample blocks in the TAESD/TAEHV decoders, shrinking preview output 2x/4x. Both UIs size the live preview from the image's intrinsic pixel dimensions (modern via object-fit: scale-down, standard via max(naturalWidth, 512px)), so lower layer counts rendered the preview physically small. Rescale the decoded preview spatially by 2^(3-layers) in sd_vae_taesd.decode. Gated to TAESD and TAEHV, the only decoders that honor taesd_layers; TAEM1 and Hybrid VAEs decode at full size and are left untouched. Rank-agnostic so it covers both image (CHW) and video (TCHW) previews, including single-frame video models used for txt2img.