Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Make empty latent node work with other models. (#12062)

comfyanonymousaef4e1358896
diff --git a/comfy/latent_formats.py b/comfy/latent_formats.py
index 5600825ed..38f18a83f 100644
--- a/comfy/latent_formats.py
+++ b/comfy/latent_formats.py
@@ -594,6 +594,7 @@ class Wan22(Wan21):
class HunyuanImage21(LatentFormat):
latent_channels = 64
latent_dimensions = 2
+ spacial_downscale_ratio = 32
scale_factor = 0.75289
latent_rgb_factors = [
@@ -727,6 +728,7 @@ class HunyuanVideo15(LatentFormat):
latent_rgb_factors_bias = [ 0.0456, -0.0202, -0.0644]
latent_channels = 32
latent_dimensions = 3
+ spacial_downscale_ratio = 16
scale_factor = 1.03682
taesd_decoder_name = "lighttaehy1_5"