From 6a98ed7a6c02bd863716294bcd50b608ec67756a Mon Sep 17 00:00:00 2001 From: zhangyongshun Date: Wed, 8 May 2024 19:48:56 +0800 Subject: [PATCH] fix ar defination inconsistency (#375) --- opensora/datasets/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensora/datasets/datasets.py b/opensora/datasets/datasets.py index 4c2b3164..0fb94c42 100644 --- a/opensora/datasets/datasets.py +++ b/opensora/datasets/datasets.py @@ -131,7 +131,7 @@ def getitem(self, index): 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":