Skip to content

Commit c9b633d

Browse files
Add missing spacial downscale ratios. (#12146)
1 parent 1711020 commit c9b633d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

comfy/latent_formats.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def __init__(self):
8181

8282
class SC_Prior(LatentFormat):
8383
latent_channels = 16
84+
spacial_downscale_ratio = 42
8485
def __init__(self):
8586
self.scale_factor = 1.0
8687
self.latent_rgb_factors = [
@@ -103,6 +104,7 @@ def __init__(self):
103104
]
104105

105106
class SC_B(LatentFormat):
107+
spacial_downscale_ratio = 4
106108
def __init__(self):
107109
self.scale_factor = 1.0 / 0.43
108110
self.latent_rgb_factors = [
@@ -274,6 +276,7 @@ def process_out(self, latent):
274276
class LTXV(LatentFormat):
275277
latent_channels = 128
276278
latent_dimensions = 3
279+
spacial_downscale_ratio = 32
277280

278281
def __init__(self):
279282
self.latent_rgb_factors = [
@@ -517,6 +520,7 @@ def process_out(self, latent):
517520
class Wan22(Wan21):
518521
latent_channels = 48
519522
latent_dimensions = 3
523+
spacial_downscale_ratio = 16
520524

521525
latent_rgb_factors = [
522526
[ 0.0119, 0.0103, 0.0046],

0 commit comments

Comments
 (0)