-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No objects detected when using libdarknet-cpp-shared.so and GPU #30
Comments
could you share the gcc command used for building the standalone executable ? |
No, I was looking for the build command for the standalone application that used darknet-shared lib. |
g++ -L/usr/local/lib -L/home/simplicity/repos/cpp-darknet -L/usr/local/cuda/lib64 -o testing ./src/testing.o ./src/yoloDarknet.o -ldarknet-cpp-shared -lcudart -lcublas -lcurand -lopencv_imgcodecs -lopencv_imgproc -lopencv_core |
You are most likely having #11 |
Ah, It works. Thank you. |
ubuntu 14.04, cudnn 5.1.10, cuda 8.0, opencv 3.2
GPU = NVIDIA GTX 960
GPU=1
CUDNN=1
When I run ./darknet-cpp detector yolo.cfg yolo.weights.cfg dog.jpg, it runs fine, but when I use the same code (copied test_detector() from detector.c) in a cpp file and use the shared lib, the detector doesnt detect any objects when using GPU. Have tested it with and without cudnn, same results.
Using the shared lib works fine (same code as above) in another laptop where I compiled without GPU.
The text was updated successfully, but these errors were encountered: