Using Docker

Notes

CUDA / cuDNN version

Please refer to this link to know the cuDNN and CUDA versions needed for a given Tensorflow version. At the moment of writing the current versions support CUDA 9.0 and cuDNN 7.

Architecture

This sample uses 2 threads, one for the ZED images capture and one for the Tensorflow detection. While it may seems more complex at first, it actually solves 2 issues at a time :

The performances are increase, the depth computation and the ZED pipeline in general is done in parallel to the inference.

Tensorflow and the ZED SDK uses CUDA GPU computation and therefore requires the use of CUDA Context. Since we currently can't share the CUDA Context between the ZED and TF, we have to separates the GPU computation. Each CUDA Context must therefore have his own thread. Another solution (not tested) could be to use something similar to this based on pop/push before each operations.