Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

debug

Shen-Chenhuidbd3982ee82b
diff --git a/scripts/train-vae-v2.py b/scripts/train-vae-v2.py
index b197606..ce1f0ed 100644
--- a/scripts/train-vae-v2.py
+++ b/scripts/train-vae-v2.py
@@ -219,6 +219,8 @@ def main():
nll_loss_fn = VEALoss(
perceptual_loss_weight = cfg.perceptual_loss_weight,
kl_loss_weight = cfg.kl_loss_weight,
+ device=device,
+ dtype=dtype,
)
adversarial_loss_fn = AdversarialLoss(