Jetson Nano Opencv CNN model

Hello Experts,
I am trying to use the default face_recognition (dlib, Pillow, numpy, etc) models in python as part of opencv2 library. When I tried to run it with CNN based models then the device hangs.

Example:
face_recognition.face_locations(frame,model=“cnn”)

Does it has support GPU accelerator support internally linked or anyway to use the GPU engine of Jetson Nano to run CNN models ?

Hi,

If your library is built with CUDA support, it should use cuDNN for inference automatically.
To check if dlib has GPU support, you can test it with the following command:

import dlib.cuda as cuda
print(cuda.get_num_devices())

Thanks.

Its throwing error as follows,

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'dlib.cuda'

How Can i install the dlib for CUDA

Hi,

You can find some information for building dlib with GPU support here:

Thanks.