Add Benchmarker
class and demo notebook for inference throughput benchmarking of Geti models
#300
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
Benchmarker
class is a tool for setting up and managing benchmarks of Geti models on local hardware. At the moment, only benchmarking of the inference rate for the local deployments is supported, but accuracy benchmarking may be added in the future. Currently, theBenchmarker
allows the user to do the following:Once this has been specified, the
Benchmarker
will prepare the project. This means it will check whether all required models and optimized models are available, and request training or optimization of the missing models if not. It will also prepare the required deployments to be able to run the inference locally.Once prepared, the benchmark can run on any target device (i.e. "CPU" or "GPU"), average inference rates for all deployments will be measured and a results file will be saved to disk.
The notebook
011_benchmarking_models
is a tutorial that shows how to initialize, prepare and run the benchmark.