add AR model

This commit is contained in:
Sen Liang committed 2022-03-17 15:17:20 +08:00
1 parent e0f24982d1
commit a09d220b85
13 files changed
+184 -67

No files matched your search

@@ -32,7 +32,7 @@ if __name__ == "__main__":
path_data = Path("/yrfs/lsen/DATA/Actor2/processing")
path_save = Path('data/Actor2/Actor2-raw-2h') # processing
path_save = Path('data/Actor2/Actor2-raw-6h') # processing
path_save.mkdir(parents=True, exist_ok=True)
v_dir_videos = sorted(path_data.glob("*/audio/feat_DECA_exp_trim.npy"))
@@ -42,8 +42,8 @@ if __name__ == "__main__":
vids = set([ipath.stem for ipath in v_dir_videos])
# print(f"vids total= {vids}")
vid_test = set(["AA7A9568"])
vid_valid = set(["AA7A9569"])
vid_test = set(["AA7A9568", "AA7A9577"])
vid_valid = set(["AA7A9569", "AA7A9578"])
vid_train = vids - vid_test - vid_valid
# vids = set(["2021-P09", "2021-P14", "2021-P22"])
@@ -63,7 +63,7 @@ if __name__ == "__main__":
# if vid not in vids: continue
# if vid in vid_test: continue
# if vid in vid_valid:continue
if durations_train / 3600 > 2: break
if durations_train / 3600 > 6: break
print(f"\n processing the {i}-th video {vid} ... ")