Skip to content
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

Closed
Qazi-Farjad opened this issue May 24, 2017 · 5 comments
Closed

Comments

@Qazi-Farjad
Copy link

Qazi-Farjad commented May 24, 2017

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.
scr2

@prabindh
Copy link
Owner

could you share the gcc command used for building the standalone executable ?

@prabindh
Copy link
Owner

No, I was looking for the build command for the standalone application that used darknet-shared lib.

@Qazi-Farjad
Copy link
Author

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

@prabindh
Copy link
Owner

You are most likely having #11

@Qazi-Farjad
Copy link
Author

Ah, It works. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants