mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix(framepack): decode tiny video without a second normalize
TAEHV.decode_video already returns [-1,1] and framepack applied its own x2-1 on top, landing near [-3,1] where the worker documents [-1,1]. The path was unreachable until the taesd loader began honoring an explicit variant.
This commit is contained in:
@@ -51,7 +51,7 @@ def vae_decode_tiny(latents):
|
||||
taesd = taesd.to(device=devices.device, dtype=devices.dtype)
|
||||
latents = latents.transpose(1, 2) # pipe produces NCTHW and tae wants NTCHW
|
||||
images = taesd.decode_video(latents, parallel=False, show_progress_bar=False)
|
||||
images = images.transpose(1, 2).mul_(2).sub_(1) # normalize
|
||||
images = images.transpose(1, 2) # taehv decodes to [-1,1] already, which is the range the full vae path returns
|
||||
taesd = taesd.to(device=devices.cpu, dtype=devices.dtype)
|
||||
return images
|
||||
|
||||
|
||||
Reference in New Issue
Block a user