wlyu commited on
Commit
52bbc29
·
verified ·
1 Parent(s): 6f463aa

overwrite with WIP changes: src/dataset.py

Browse files
Files changed (1) hide show
  1. UCPE/src/dataset.py +2 -1
UCPE/src/dataset.py CHANGED
@@ -91,7 +91,8 @@ class PanShotDataset(Dataset):
91
  data = self.metas[idx].copy()
92
 
93
  video_id = data["video_id"]
94
- video_path = self.data_root / "PanShot" / f"videos-{self.split}" / f"{video_id}.mp4"
 
95
  data["video_path"] = str(video_path)
96
  data["result_path"] = data["video_path"] if self.result_root is None else str(self.result_root / f"{video_id}.mp4")
97
 
 
91
  data = self.metas[idx].copy()
92
 
93
  video_id = data["video_id"]
94
+ video_subdir = getattr(self.args, "video_subdir", "videos")
95
+ video_path = self.data_root / "PanShot" / f"{video_subdir}-{self.split}" / f"{video_id}.mp4"
96
  data["video_path"] = str(video_path)
97
  data["result_path"] = data["video_path"] if self.result_root is None else str(self.result_root / f"{video_id}.mp4")
98