From 9f4b181ab38b246961c5a51994a8357e62634de1 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 18 Dec 2024 18:24:23 -0500 Subject: [PATCH] Add fast previews for hunyuan video. --- comfy/latent_formats.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/comfy/latent_formats.py b/comfy/latent_formats.py index 10fe59aa..40234b64 100644 --- a/comfy/latent_formats.py +++ b/comfy/latent_formats.py @@ -356,3 +356,23 @@ class LTXV(LatentFormat): class HunyuanVideo(LatentFormat): latent_channels = 16 scale_factor = 0.476986 + latent_rgb_factors = [ + [-0.0395, -0.0331, 0.0445], + [ 0.0696, 0.0795, 0.0518], + [ 0.0135, -0.0945, -0.0282], + [ 0.0108, -0.0250, -0.0765], + [-0.0209, 0.0032, 0.0224], + [-0.0804, -0.0254, -0.0639], + [-0.0991, 0.0271, -0.0669], + [-0.0646, -0.0422, -0.0400], + [-0.0696, -0.0595, -0.0894], + [-0.0799, -0.0208, -0.0375], + [ 0.1166, 0.1627, 0.0962], + [ 0.1165, 0.0432, 0.0407], + [-0.2315, -0.1920, -0.1355], + [-0.0270, 0.0401, -0.0821], + [-0.0616, -0.0997, -0.0727], + [ 0.0249, -0.0469, -0.1703] + ] + + latent_rgb_factors_bias = [ 0.0259, -0.0192, -0.0761]