refactor taesd and add multiple variants in settings

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-01-12 14:09:55 -05:00
parent e81db4cdfe
commit 49f5c8ab12
13 changed files with 755 additions and 221 deletions
+2
View File
@@ -239,6 +239,8 @@ def vae_decode(latents, model, output_type='np', full_quality=True, width=None,
decoded = full_vqgan_decode(latents=latents, model=model)
else:
decoded = taesd_vae_decode(latents=latents)
if torch.is_tensor(decoded):
decoded = 2.0 * decoded - 1.0 # typical normalized range
if torch.is_tensor(decoded):
if hasattr(model, 'video_processor'):