An open API service indexing awesome lists of open source software.

https://github.com/redhawk989/onnx-multithreader

Run ONNX models in a multithreadded enviroment for lower CPU usage
https://github.com/redhawk989/onnx-multithreader

Last synced: about 1 year ago
JSON representation

Run ONNX models in a multithreadded enviroment for lower CPU usage

Awesome Lists containing this project

README

          

# onnx-multithreader
Run ONNX models in a multithreaded environment for lower CPU usage

Increasing `inter_op_num_threads` for more FPS did not satisfy my usage requirements so I wrote this program to run 2 models and interweave the output for more efficient utilization.
In my testing, this method provided a 40x improvement in CPU usage for higher FPS needs, and can even be ~4 times more efficient than a normal ONNX inference script.

Found this repo useful? Give it a star!