| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…video This parameter can be used to limit the RAM usage when the user is processing many videos on multiple cores.
| Back | FazBrowse Home | New Git URL |
Add argument max_workers to limit the number of processes spawned in create_labeled_video.
The default behavior remains the same: when using multiprocessing, the number of spawned processes is min(cpu_cores, n_videos).
For some users that are processing many videos on a machine with many cores, the large number of simultaneous processes can drastically increase RAM-usage, especially for high resolution videos. Adding the max_workers parameter helps to the user to mitigate this.
Some profiling results:

The effects of limiting the max number of workers to 4 on a machine with 20 cores.