Giter Site home page Giter Site logo

darknet-cpp-wrapper's Introduction

Stats

darknet-cpp-wrapper's People

Contributors

tommyx12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

darknet-cpp-wrapper's Issues

Error "template with C linkage"

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.

CMakeLists.txt

Thanks a lot.

Compile line to be added to Makefile

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!

how to use

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.

Yolov3

Hi, greetings from Turkey.
My question is can we use the same code for yolov3?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.