Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

debug

Shen-Chenhui4861e6beafc4
diff --git a/scripts/inference-vae.py b/scripts/inference-vae.py
index 6da7a86..3bfb9ff 100644
--- a/scripts/inference-vae.py
+++ b/scripts/inference-vae.py
@@ -43,9 +43,9 @@ def main():
# 2. runtime variables
# ======================================================
torch.set_grad_enabled(False)
- torch.backends.cuda.matmul.allow_tf32 = True
- torch.backends.cudnn.allow_tf32 = True
- device = "cuda" if torch.cuda.is_available() else "cpu"
+ # torch.backends.cuda.matmul.allow_tf32 = True
+ # torch.backends.cudnn.allow_tf32 = True
+ # device = "cuda" if torch.cuda.is_available() else "cpu"
device = get_current_device()
dtype = to_torch_dtype(cfg.dtype)
# set_random_seed(seed=cfg.seed)