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.

Fast latent preview for Cosmos.

comfyanonymousee8a7ab69d28
diff --git a/comfy/latent_formats.py b/comfy/latent_formats.py
index 9e6dfc177..e98982c94 100644
--- a/comfy/latent_formats.py
+++ b/comfy/latent_formats.py
@@ -386,3 +386,24 @@ class HunyuanVideo(LatentFormat):
class Cosmos1CV8x8x8(LatentFormat):
latent_channels = 16
latent_dimensions = 3
+
+ latent_rgb_factors = [
+ [ 0.1817, 0.2284, 0.2423],
+ [-0.0586, -0.0862, -0.3108],
+ [-0.4703, -0.4255, -0.3995],
+ [ 0.0803, 0.1963, 0.1001],
+ [-0.0820, -0.1050, 0.0400],
+ [ 0.2511, 0.3098, 0.2787],
+ [-0.1830, -0.2117, -0.0040],
+ [-0.0621, -0.2187, -0.0939],
+ [ 0.3619, 0.1082, 0.1455],
+ [ 0.3164, 0.3922, 0.2575],
+ [ 0.1152, 0.0231, -0.0462],
+ [-0.1434, -0.3609, -0.3665],
+ [ 0.0635, 0.1471, 0.1680],
+ [-0.3635, -0.1963, -0.3248],
+ [-0.1865, 0.0365, 0.2346],
+ [ 0.0447, 0.0994, 0.0881]
+ ]
+
+ latent_rgb_factors_bias = [-0.1223, -0.1889, -0.1976]