Article ID: 000092778 Content Type: Troubleshooting Last Reviewed: 11/13/2023

Slow Inference Speed When Inferencing Grayscale Images with Modified Benchmark C++ Tool

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Step to prevent Benchmark C++ Tool to recompute image for every pixel.

Description
  1. Modified Benchmark C++ Tool in order to load grayscale images.
  2. The obtained inference speed was very low.
Resolution

Slow inference speed is due to ternary operator's inner loop from modified Benchmark C++ Tool recomputes image for every pixel.

Optimize loop by computing image once per loop.

Related Products

This article applies to 1 products