update run actor4data

This commit is contained in:
Sen Liang committed 2022-04-27 12:05:49 +08:00
1 parent 7550ffe30f
commit e6c668fef5
5 files changed
+27 -18

No files matched your search

+5 -3
View File
@@ -7,7 +7,9 @@ from moviepy.editor import VideoFileClip, AudioFileClip
if __name__ == '__main__':
path_raw = Path("/ssdata1/cf/data/raw/20220422/bg")
# path_raw = Path("/ssdata1/cf/data/raw/20220422/bg")
path_raw = Path("/mfs/lsen/DATA/Actor4")
path_root = Path("/mfs/lsen/DATA/Actor4")
vpath_videos = sorted(path_raw.glob("*.mp4"), reverse=False)
@@ -16,7 +18,7 @@ if __name__ == '__main__':
# IDs = ["clip_full"]
durations = 0
# for each video
for i, ipath_item in enumerate(vpath_videos[1:]):
for i, ipath_item in enumerate(vpath_videos):
iname = ipath_item.stem
print(f"processing {i}/{len(vpath_videos)} -> {ipath_item} ... ")
@@ -24,7 +26,7 @@ if __name__ == '__main__':
# if iname not in IDs: continue
# data path
ipath_data = path_root.joinpath("bg", ipath_item.stem)
ipath_data = path_root.joinpath("bg_black", ipath_item.stem)
ipath_frame = ipath_data.joinpath("frames")
ipath_video = ipath_data.joinpath("video")