Skip to content

Commit 07abe8b

Browse files
authored
Merge pull request #1703 from AmericanPresidentJimmyCarter/fix-cosmos2-vae-caching
Fix crash in Cosmos2 latent generation
2 parents adbda52 + 889e54b commit 07abe8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/caching/vae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def process_video_latents(self, latents_uncached):
555555
logger.debug(f"Video latent processing results: {output_cache_entry}")
556556
# we'll now overwrite the latents after logging.
557557
output_cache_entry["latents"] = latents_uncached
558-
elif StateTracker.get_model_family() in ["wan", "cosmos2image"]:
558+
elif StateTracker.get_model_family() in ["wan"]:
559559
logger.debug(
560560
f"Shape for Wan VAE encode: {latents_uncached.shape} with latents_mean: {self.vae.latents_mean} and latents_std: {self.vae.latents_std}"
561561
)

0 commit comments

Comments
 (0)