Skip To Main Content
Support Knowledge Base

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

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

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.