Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

typo

Shen-Chenhui40fd8a6b7be7
diff --git a/scripts/train-vae.py b/scripts/train-vae.py
index 925528a..43fecaa 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)