Skip to content

Commit 9f4b181

Browse files
Add fast previews for hunyuan video.
1 parent cbbf077 commit 9f4b181

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

comfy/latent_formats.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,3 +356,23 @@ def __init__(self):
356356
class HunyuanVideo(LatentFormat):
357357
latent_channels = 16
358358
scale_factor = 0.476986
359+
latent_rgb_factors = [
360+
[-0.0395, -0.0331, 0.0445],
361+
[ 0.0696, 0.0795, 0.0518],
362+
[ 0.0135, -0.0945, -0.0282],
363+
[ 0.0108, -0.0250, -0.0765],
364+
[-0.0209, 0.0032, 0.0224],
365+
[-0.0804, -0.0254, -0.0639],
366+
[-0.0991, 0.0271, -0.0669],
367+
[-0.0646, -0.0422, -0.0400],
368+
[-0.0696, -0.0595, -0.0894],
369+
[-0.0799, -0.0208, -0.0375],
370+
[ 0.1166, 0.1627, 0.0962],
371+
[ 0.1165, 0.0432, 0.0407],
372+
[-0.2315, -0.1920, -0.1355],
373+
[-0.0270, 0.0401, -0.0821],
374+
[-0.0616, -0.0997, -0.0727],
375+
[ 0.0249, -0.0469, -0.1703]
376+
]
377+
378+
latent_rgb_factors_bias = [ 0.0259, -0.0192, -0.0761]

0 commit comments

Comments
 (0)