Open-Sora: Democratizing Efficient Video Production for All
Python
typo
Shen-Chenhui4b54a897de09
diff --git a/scripts/train-vae.py b/scripts/train-vae.pyindex 43fecaa..925528a 100644--- a/scripts/train-vae.py+++ b/scripts/train-vae.py@@ -234,7 +234,7 @@ def main():# if random.random() < cfg.get("mixed_image_ratio", 0.0):# x = x[:, :, :1, :, :]length = random.randint(1, x.size(2))- x = x[:, :, :length, :, :]+ x = x[:, :, length, :, :]# ===== VAE =====x_rec, x_z_rec, z, posterior, x_z = model(x)