f"Number of videos in batch: {len(batch_video_files)}. Average processing time per video: {average_time:.2f} seconds. Total time for this batch: {total_time:.2f} seconds"
...
...
@@ -240,11 +240,11 @@ if __name__ == "__main__":
forfinos.listdir(root)
iff.endswith((".mp4",".avi",".mov"))
]# Add more extensions if needed
start_time=time.time()# Start time for processing a single video
start_time=time.perf_counter()# Start time for processing a single video
forcur_videoinvideo_files[:1]:
print(cur_video)
single(cur_video,num_frames)
end_time=time.time()# End time for processing a single video
end_time=time.perf_counter()# End time for processing a single video
f"Capture draft cuda graph end. Time elapsed: {time.time()-tic:.2f} s. avail mem={after_mem:.2f} GB. mem usage={(before_mem-after_mem):.2f} GB."
f"Capture draft cuda graph end. Time elapsed: {time.perf_counter()-tic:.2f} s. avail mem={after_mem:.2f} GB. mem usage={(before_mem-after_mem):.2f} GB."