tommyx12 / darknet-cpp-wrapper Goto Github PK
View Code? Open in Web Editor NEWA small C++ wrapper for pjreddie/darknet detector (yolo v2), for use in UTAT project.
A small C++ wrapper for pjreddie/darknet detector (yolo v2), for use in UTAT project.
Hi I was trying to compile the project using CMake and I am getting several errors related with template with C linkage
in several cuda functions similar to this one:
In file included from /usr/local/cuda-8.0/include/cuda_runtime.h:90:0,
from /home/bardo91/programing/3rdparty/darknet-cpp-wrapper/src/darknet.h:14,
from /home/bardo91/programing/3rdparty/darknet-cpp-wrapper/src/utils.h:5,
from /home/bardo91/programing/3rdparty/darknet-cpp-wrapper/src/darknet_detector.h:4,
from /home/bardo91/programing/3rdparty/darknet-cpp-wrapper/src/darknet.hpp:5,
from /home/bardo91/programing/3rdparty/darknet-cpp-wrapper/src/main.cpp:1:
/usr/local/cuda-8.0/include/channel_descriptor.h:107:1: error: template with C linkage
template<class T> __inline__ __host__ cudaChannelFormatDesc cudaCreateChannelDesc(void)
^
/usr/local/cuda-8.0/include/channel_descriptor.h:140:1: error: template specialization with C linkage
template<> __inline__ __host__ cudaChannelFormatDesc cudaCreateChannelDesc<char>(void)
^
I was able to compile and use Darknet project using their make file and I have been using but now I want to use it in a project using cpp and I got blocked at this point. Do you have any guess of what can I do for solving it?
This is the make file I am using.
Thanks a lot.
There is no darknet.c in /src? There is one in /examples but not source. How do I complete step 3?
Hey, thanks for the wrapper.
Can you give me an example of what g++ command you add to the Makefile to compile the wrapper?
Also, just letting you know that pjreddie moved the darknet.c file to the examples folder from the src folder upstream.
Thanks!
hello can you write little more about details. i copied all orginal code into wrapper , and darknet.h file to examples folder and tried "g++ main.cpp" but
main.cpp:24:1: error: ‘Darknet’ does not name a type
Darknet darknet;
^
main.cpp: In function ‘int main(int, char**)’:
main.cpp:41:2: error: ‘darknet’ was not declared in this scope
darknet.initialize(0);
^
Can you write more about details.
Thank you.
Hi, greetings from Turkey.
My question is can we use the same code for yolov3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.