You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: training/dataset.py
+38-5Lines changed: 38 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -78,15 +78,16 @@ def __init__(
78
78
self.video_paths,
79
79
) =self._load_dataset_from_csv()
80
80
81
-
self.num_videos=len(self.video_paths)
82
-
ifself.num_videos!=len(self.prompts):
81
+
iflen(self.video_paths) !=len(self.prompts):
83
82
raiseValueError(
84
83
f"Expected length of prompts and videos to be the same but found {len(self.prompts)=} and {len(self.video_paths)=}. Please ensure that the number of caption prompts and videos match in your dataset."
0 commit comments