-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathtest_ds.py
More file actions
35 lines (30 loc) · 1.12 KB
/
test_ds.py
File metadata and controls
35 lines (30 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import subprocess
# --------------------------------------------
# MANUALLY LIST FILES YOU WANT TO RUN
# --------------------------------------------
FILES_TO_RUN = [
# "DeepStream-Python/deepstream_test_1.py",
"DeepStream-Python/deepstream_test_yolo_save_vid.py",
"DeepStream-Python/deepstream_test_yolo_track_save_vid.py",
"DeepStream-Python/deepstream_test_yolo_track_ROI_save_vid.py",
"DeepStream-Python/deepstream_test_yolo_track_pose_save_vid.py"
# "DeepStream-Python/deepstream_test_yolo_track_multimodel.py"
]
# Arguments you want to pass to every script
COMMON_ARGS = [
"file:///root/inputs/people-detection.mp4",
"--display"
]
def main():
for file in FILES_TO_RUN:
print(f"\n==============================")
print(f" RUNNING: {file}")
print(f"==============================")
try:
subprocess.run(["python3", file] + COMMON_ARGS, check=True)
except subprocess.CalledProcessError:
print(f"❌ ERROR while running {file}")
except Exception as e:
print(f"❌ Unexpected error: {e}")
if __name__ == "__main__":
main()