Skip to content

Commit 50d6e1c

Browse files
Tweak ltxv vae mem estimation. (Comfy-Org#11722)
1 parent ac12f77 commit 50d6e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comfy/sd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,8 @@ def __init__(self, sd=None, device=None, config=None, dtype=None, metadata=None)
479479
self.first_stage_model = comfy.ldm.lightricks.vae.causal_video_autoencoder.VideoVAE(version=version, config=vae_config)
480480
self.latent_channels = 128
481481
self.latent_dim = 3
482-
self.memory_used_decode = lambda shape, dtype: (900 * shape[2] * shape[3] * shape[4] * (8 * 8 * 8)) * model_management.dtype_size(dtype)
483-
self.memory_used_encode = lambda shape, dtype: (70 * max(shape[2], 7) * shape[3] * shape[4]) * model_management.dtype_size(dtype)
482+
self.memory_used_decode = lambda shape, dtype: (1200 * shape[2] * shape[3] * shape[4] * (8 * 8 * 8)) * model_management.dtype_size(dtype)
483+
self.memory_used_encode = lambda shape, dtype: (80 * max(shape[2], 7) * shape[3] * shape[4]) * model_management.dtype_size(dtype)
484484
self.upscale_ratio = (lambda a: max(0, a * 8 - 7), 32, 32)
485485
self.upscale_index_formula = (8, 32, 32)
486486
self.downscale_ratio = (lambda a: max(0, math.floor((a + 7) / 8)), 32, 32)

0 commit comments

Comments
 (0)