add deployment tools of pytorch2onnx

This commit is contained in:
Sen Liang committed 2022-04-12 11:24:38 +08:00
1 parent 28810e9ed3
commit 91cdd0d678
9 files changed
+461 -71

No files matched your search

+5 -4
View File
@@ -8,8 +8,10 @@ if __name__ == '__main__':
# path_root = Path("/yrfs/lsen/DATA/Actor1")
path_raw = Path("/ssdata1/cf/data/raw/20220319")
path_root = Path("/yrfs/lsen/DATA/Actor2")
# path_raw = Path("/ssdata1/cf/data/raw/20220319")
path_raw = Path("/ssdata1/cf/data/raw/20220408")
# path_root = Path("/mfs/lsen/DATA/Actor2/processing")
path_root = Path("/mfs/lsen/DATA/Actor2/happy")
vpath_videos = sorted(path_raw.glob("*.MP4"), reverse=False)
print(f"Have {len(vpath_videos)} dir files")
@@ -25,7 +27,7 @@ if __name__ == '__main__':
# if iname not in IDs: continue
# data path
ipath_data = path_root.joinpath("processing", ipath_item.stem)
ipath_data = path_root.joinpath(ipath_item.stem)
ipath_frame = ipath_data.joinpath("frames")
ipath_video = ipath_data.joinpath("video")
@@ -91,7 +93,6 @@ if __name__ == '__main__':
nframes = len(list(video.iter_frames()))
# get audio
audio_sub = video.audio
if audio_sub is None: