jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 153 forks source link

Opencv dnn doesnot use GPU #8

Closed Mamta-B closed 6 years ago

Mamta-B commented 6 years ago

I m using the following to detect objects using SSD mobilenet (CAffe) on Jetson TX2 with opencv3.4.1 and Cuda 9.0

blob = cv2.dnn.blobFromImage(cv2.resize(frame, (300, 300)), 0.007843, (300, 300), 127.5) net.setInput(blob) detections = net.forward()

The tegrastats show no GPU usage at all. All the cores of the CPU are utilized properly, however GPU utilisation is zero.

How can I enable GPU usage on the Jetson for faster FPS on videos ?

Thanks

jetsonhacks commented 6 years ago

Are you using Python?

jetsonhacks commented 6 years ago

Are you linked against the OpenCV 3.4 libraries in Caffe? Without providing more information, it is difficult to diagnose your issue.