0

I have try to train my classifier using opencv_traincascade in my machine. When run it, it utilize 100% of my CPU but not use my GPU. I have install OpenCV 3.x in my Ubuntu 16.04. And I have GeForece GTX 1080 Ti/PCIe/SSE2. I success install the driver with CUDA 8.0. How I can use the GPU instead of using CPU? I use below script to train the module in

opnencv_traincascade -data data -vec positives.vec -bg bg.txt -numPos 37000 -numNeg 756 -numStage 20 -w 20 -h 20

Any configuration I need to set to use the GPU?

Bubble Bub
  • 651
  • 4
  • 12
  • 32

1 Answers1

1

To use OpenCV with multi-threading and CUDA, you need to build an OpenCV as in this guide

Or you can download an already assembled OpenCV by first installing all the necessary components (CUDA Toolkit, TBB, MKL) and setting the environment variables in Path