Skip to content

Commit

Permalink
Fast latent preview for Cosmos.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jan 11, 2025
1 parent 9c773a2 commit ee8a7ab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions comfy/latent_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit ee8a7ab

Please sign in to comment.