Open-Sora: Democratizing Efficient Video Production for All
Python
debug
shenchenhui716b3f37747d
diff --git a/scripts/train-vae.py b/scripts/train-vae.pyindex 3d7cb2b..089f197 100644--- a/scripts/train-vae.py+++ b/scripts/train-vae.py@@ -206,7 +206,7 @@ def main():x = batch["video"].to(device, dtype) # [B, C, T, H, W]# loss = vae.get_loss(x)- loss_function = VEA3DLoss(kl_weight=cfg.model.kl_weight)+ loss_function = VEA3DLoss(kl_weight=cfg.model.kl_weight).to(device, dtype)reconstructions, posterior = vae(x)loss = loss_function(batch, reconstructions, posterior)