schwittlick / ofxDarknet

darknet neural network addon for openFrameworks
MIT License
496 stars 89 forks source link

YOLOv3 #42

Open kocica opened 5 years ago

kocica commented 5 years ago

Hi @schwittlick

I would like to run your repository using third version of YOLO. Is it enough to just replace darknet source codes and rebuild using cmake or do I need to do some significant changes?

Thanks for any help.

schwittlick commented 5 years ago

Hey @kocica

unfortunately I don't have the time to keep this project maintained myself. So please check it out and post your progress here. I'll do my best to assist you!

genekogan commented 5 years ago

hey @kocica @schwittlick.

we've had trouble maintaining ofxDarknet because of the complex dependencies and need to extern darknet's C code into openframeworks C++. in general it's a pain to maintain because it's just difficult to manage this in c++.

an alternative i've started working on is ofxRunway where the idea is to take darknet and other libraries and instead of wrapping them to C++, keep them the way they are and containerize them and create a server that runs alongside an OF client which sends the server the image and gets the results back over HTTP. This is already confirmed working for a bunch of python-based repos, haven't wrapped darknet yet though. i can give more info if you are interested in helping.

iraadit commented 5 years ago

Hi @genekogan,

Just for info, this fork of Darknet (that is more maintained that the original one) is providing a C++ api.

Nice what you're doing for Runway.

Edit: https://github.com/AlexeyAB/darknet

johanjohan commented 5 years ago

hi @genekogan, interesting! is the assumption correct, that one needs their beta package in order to run the server?

johanjohan commented 5 years ago

hi @iraadit , which fork are you refering to?

iraadit commented 5 years ago

Hi @johanjohan,

Sorry, I forgot to paste the link. Here it is: https://github.com/AlexeyAB/darknet

kocica commented 5 years ago

Hi @iraadit,

this fork is awesome and I am currently trying to get it working together with this repo. Yet without success unfortunately - mainly because I am not windows user so I struggle even with darknet compilation. So if anybody could provide windows darknet built libs - would be very appreciated.

genekogan commented 5 years ago

@johanjohan no you do not need the beta -- this is using the backend models only. essentially, ofxRunway is an openframeworks replacement for the runway client application (which is what the beta is for)

schwittlick commented 5 years ago

Whoops. That repo is good and should help a lot to compile a lib and for Windows compilable headers. I'll try to find time soon and let you know here 🙏

kocica commented 5 years ago

Hi @schwittlick,

it would be great, because I want to use this repo for my object detection video presentation at conference and I would like to make it run in less than 7 days. Unfortunately I am struggling with darknet compilation on windows, since I am mostly linux user.

bingxinfeng commented 5 years ago

Hi @schwittlick I downloaded the ofxDarknet, but failed to complied the yolo example. It's said that 'cuda_runtime.h' file not found cuda.h. Is there any way to fix this? (I'm a Mac user. ) I saw in the other forums that you guys said that it's difficult to maintain darknet in C++...seems the cuda problem hasn't been solved? For my project I need to detect and count how many people in the camera, is there any other addons can achieve this purpose? Thanks!