martinwholtmon / IT3920-2024-Master-MSIT

Master project for MSIT 2024 - Towards Efficient Human Action Recognition: The Role of Keyframe Selection in Video Processing
MIT License
0 stars 0 forks source link

Add measure_latency option for video processing time #102

Closed martinwholtmon closed 3 weeks ago

martinwholtmon commented 3 weeks ago

This pull request adds a new feature that allows measuring the latency of video processing time. It includes the following commits:

The changes include adding a new command-line argument --extra_measurements to enable measuring per video/frame latency and peak memory usage during evaluation. The GPU memory usage is monitored using the pynvml library. The code has been refactored to move the scheduler and GPU monitoring into separate files for better organization. Redundant code has been removed, and documentation has been added.