Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

fix ar defination inconsistency (#375)

zhangyongshun2ec756a240e2
diff --git a/opensora/datasets/datasets.py b/opensora/datasets/datasets.py
index 4c2b316..0fb94c4 100644
--- a/opensora/datasets/datasets.py
+++ b/opensora/datasets/datasets.py
@@ -131,7 +131,7 @@ class VariableVideoTextDataset(VideoTextDataset):
path = sample["path"]
text = sample["text"]
file_type = self.get_type(path)
- ar = width / height
+ ar = height / width
video_fps = 24 # default fps
if file_type == "video":