Git Product home page Git Product logo

ofxdarknet's Introduction

ofxDarknet

ofxDarknet is a openFrameworks wrapper for darknet.

Darknet is an open source neural network framework written in C and CUDA. It is fast, easy to install, and supports CPU and GPU computation. http://pjreddie.com/darknet/

Features

YOLO: Real-Time Object Detection (http://pjreddie.com/darknet/yolo/)

Darknet comes with two pre-trained models for this task. Additionally each has a smaller (and faster) but therefore less accurate version:

MS COCO dataset (80 different classes)

	std::string cfgfile = ofToDataPath( "cfg/tiny-yolo.cfg" );
	std::string weightfile = ofToDataPath( "tiny-yolo.weights" );
	std::string nameslist = ofToDataPath( "cfg/names.list" );
	darknet.init( cfgfile, weightfile, nameslist );

Pascal VOC dataset (20 different classes)

	std::string cfgfile = ofToDataPath( "cfg/tiny-yolo-voc.cfg" );
	std::string weightfile = ofToDataPath( "tiny-yolo-voc.weights" );
	std::string nameslist = ofToDataPath( "cfg/voc.names" );
	darknet.init( cfgfile, weightfile, nameslist );

YOLO2 with 9000 classes

	std::string datacfg = ofToDataPath( "cfg/combine9k.data" );
	std::string cfgfile = ofToDataPath( "cfg/yolo9000.cfg" );
	std::string weightfile = ofToDataPath( "yolo9000.weights" );
	darknet.init( cfgfile, weightfile, datacfg );
	float thresh = 0.25;
	std::vector< detected_object > detections = darknet.yolo( image.getPixelsRef(), thresh );

	for( detected_object d : detections )
	{
		ofSetColor( d.color );
		glLineWidth( ofMap( d.probability, 0, 1, 0, 8 ) );
		ofNoFill();
		ofDrawRectangle( d.rect );
		ofDrawBitmapStringHighlight( d.label + ": " + ofToString(d.probability), d.rect.x, d.rect.y + 20 );
	}

YOLO2

Imagenet Classification (http://pjreddie.com/darknet/imagenet/)

In order to classify an image with more classes, this is the spot. This classifies an image according to the 1000-class ImageNet Challenge.

	std::string cfgfile = ofToDataPath( "cfg/darknet.cfg" );
	std::string weightfile = ofToDataPath( "darknet.weights" );
	std::string nameslist = ofToDataPath( "cfg/imagenet.shortnames.list" );
	darknet.init( cfgfile, weightfile, nameslist );

	classifications = darknet.classify( image.getPixelsRef() );
	int offset = 20;
	for( classification c : classifications )
	{
		std::stringstream ss;
		ss << c.label << " : " << ofToString( c.probability );
		ofDrawBitmapStringHighlight( ss.str(), 20, offset );
		offset += 20;
	}

Classification

vgg-conv.cfg & vgg-conv.weights

	std::string cfgfile = ofToDataPath( "cfg/vgg-conv.cfg" );
	std::string weightfile = ofToDataPath( "vgg-conv.weights" );
	darknet.init( cfgfile, weightfile );
	
	int max_layer = 13;
	int range = 3;
	int norm = 1;
	int rounds = 4;
	int iters = 20;
	int octaves = 4;
	float rate = 0.01;
	float thresh = 1.0;
	nightmare = darknet.nightmate( image.getPixelsRef(), max_layer, range, norm, rounds, iters, octaves, rate, thresh );

DeepDream

Darknet pre-trained weights files:

ofxDarknet custom pre-trained weight files (each trained for 20h on NVidia TitanX):

  • Anonymous - Hypersphere Hypersphere, written by Anonymous with the help of the 4chan board /lit/ (of The Legacy of Totalitarianism in a Tundra fame) is an epic tale spanning over 700 pages. A postmodern collaborative writing effort containing Slavoj Žižek erotica, top secret Donald Trump emails, poetry, repair instructions for future cars, a history of bottles in the Ottoman empire; actually, it contains everything since it takes place in the Hypersphere, and the Hypersphere is a big place; really big in fact.
  • Books on art history & aesthetics
  • Books on digital culture
	std::string cfgfile = ofToDataPath( "cfg/rnn.cfg" );
	std::string weightfile = ofToDataPath( "shakespeare.weights" );
	darknet.init( cfgfile, weightfile );

	int character_count = 100;
	float temperature = 0.8;
	std::string seed_text = "openframeworks is ";
	std::string generated_text = darknet.rnn( character_count, seed_text, temperature );

RNN

You can train your own RNN models with darknet

	// no need to init
	darknet.train_rnn( ofToDataPath( "training_text.txt" ), "cfg/rnn.cfg" );

Go

Darknet has a policy network for Go. Read the original doc here.

In the example example-go is a 2-player game where darknet gives recommendations. To play, click on the square you wish to move a piece onto. More doc on this soon.

Go

Setup

Windows

Install the dependencies for building darknet on Windows 10:

There are some more necessary steps that don't work with the OF project generator:

  • Compile as Debug or Release in x64 mode
  • Within VS2015 Solution Explorer, rightclick on the generated project -> Build Dependencies -> Build Customizations -> Tick CUDA 8.0
  • Copy pthreadVC2.dll from ofxDarknet\libs\3rdparty\dll\x64 to your applications bin folder

OSX

First make sure to install CUDA 8.0 64bit (Driver & Toolkit). CUDA requires an NVIDIA graphics card and a reasonably recent Mac OS.

After that, projects should compile fine from the Project Generator. Make sure to download the necessary weights (links can be found here and include the required cfg files (found in the examples) in any app that opens them.

Building the library from source

If you want to make changes to the darknet lib, you can build it from source with cmake. cd into libs/darknet/cMake/ and then run:

cmake .
make

Note, you need to have CUDA and OpenCV installed on your system first.

Training your own models

YOLO

tcb

Credits

Reading

  • tutorial on training YoloV2 to detect custom objects

ofxdarknet's People

Contributors

genekogan avatar schwittlick 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofxdarknet's Issues

Some important questions ....

@Mrzl
@genekogan

Hello,

  1. I want to use YOLO2 in windows. Does your repo is about this or it is YOLO1?

  2. How can I train the YOLO2 on my own custom dataset (fine-tuning)? how can we see the mAP during training?

conflicts with ofxOsc

building a project from generator with both ofxDarknet and ofxOsc, and i get this error in ofxOsc:

screen shot 2017-02-12 at 8 14 26 pm

not sure yet what is causing it.

YOLO examples don't align with current code state

Hello!

I'm trying to use the YOLO part of this library in Visual Studio 2015.

The examples in the readme show setups where you set up darknet by calling the following:

darknet.init( cfgfile, weightfile, datacfg, nameslist );

However, the init function only takes 3 parameters:

void init( std::string cfgfile, std::string weightfile, std::string nameslist = "");

By omitting datacfg in my code, it seems to run, but I'm having issues with the names of the detected objects (unicode garbage attached to the front).

My question, then, is this: How do I use YOLO, given that I've set up VS correctly?

(Other thing I thought I'd point out: "cfg/names.list" in the first example for YOLO is not a file in the project)

example-deepdream CUDA Error

When running example-deepdream I get the following error.

Loading weights from /Users/andreasrefsgaard/Documents/OpenFrameworks/of_v0.9.7_osx_release/addons/ofxDarknet/example-deepdream/bin/data/vgg-conv.weights...Done!
Iteration: 0, 1, 2, CUDA Error: out of memory
Assertion failed: (0), function check_error, file /Users/sonneundasche/programming/of/addons/ofxDarknet/libs/darknet/include/cuda.c, line 39.

Is it suppose to refer to the local path of /Users/sonneundasche/ ?

All examples crashing when loading layer 24

After doing the fixes described here: #23 (comment)
I have the issue that every example I'm trying is crashing as soon as it gets to layer 24.
See this screenshot:

error

This happening with every example. This specifically is from the yolo2 example.
Same behaviour on Windows 7 and Windows 10 with VS15 and CUDA 8 x64 on 3 different machines.
I got a version of darknet running standalone using this repo: https://github.com/AlexeyAB/darknet

issue with new version cuda 9.1

after installed cuda 9.1 toolkit , no extra code adding ,just try build and got errors:

dyld: Library not loaded: @rpath/libcublas.8.0.dylib
Referenced from: /Applications/of_v0.9.8_osx_release/addons/ofxDarknet/libs/darknet/lib/osx/libdarknetOSX.dylib
Reason: image not found

same issue with file "libcurand.8.0.dylib" and "libcusparse.8.0.dylib"

I found "libcublas.9.1.dylib" in /usr/local/cuda/lib , duplicated it and changed name to "libcublas.8.0.dylib" to remove error.same to rest files.

I'm not sure if this hacking works before doing something real yet.

is the 8.0 version of cuda are pre defined in the addon ? where can I change it to newest 9.1 ?

thanks !

YOLOv3

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.

OSX: cannot open .cfg files

The examples builds successfully, but then spits out errors about not being able to open the .cfg files although they are placed in bin/cfg

For instance in example-yolo2:
Couldn't open file: cfg/yolo.cfg

and in example-imagenet

Couldn't open file: cfg/darknet.cfg

Tested in of_v0.9.0 and of_v0.9.7 on OSX.

Any idea what might cause this?

GPU mode issue

It seems that the plugin is not using the GPU/CUDA due to sluggish performance and only one CPU running on 100%. But when I'm running the standalone darknet app, it runs flawlessly!

I tried the branch that allows you (from what I understand) to run in GPU mode. But when I compile, the app breaks and the output is following:

'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Users\B-ReelLDN\Desktop\of_v0.9.8_vs_release\apps\myApps\DarkNetToNodeV1\bin\DarkNetToNodeV1_debug.exe'. Symbols loaded.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\concrt140d.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Users\B-ReelLDN\Desktop\of_v0.9.8_vs_release\apps\myApps\DarkNetToNodeV1\bin\FreeImage.dll'. Module was built without symbols.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ddraw.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\vcomp120.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\dciman32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Users\B-ReelLDN\Desktop\of_v0.9.8_vs_release\apps\myApps\DarkNetToNodeV1\bin\fmodex64.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Users\B-ReelLDN\Desktop\of_v0.9.8_vs_release\apps\myApps\DarkNetToNodeV1\bin\pthreadVC2.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\cudart64_80.dll'. Module was built without symbols.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\cublas64_80.dll'. Module was built without symbols.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\curand64_80.dll'. Module was built without symbols.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcr100.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\nvoglv64.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\wtsapi32.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Cannot find or open the PDB file.
The thread 0x4388 has exited with code 0 (0x0).
The thread 0x3094 has exited with code 0 (0x0).
The thread 0x63c has exited with code 0 (0x0).
The thread 0x14c4 has exited with code 0 (0x0).
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\winsta.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Program Files (x86)\Blackmagic Design\Blackmagic Desktop Video\DeckLinkAPI64.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcp120.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\nvcuda.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\nvfatbinaryLoader.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\nvapi64.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\wshqos.dll'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\WSHTCPIP.DLL'. Cannot find or open the PDB file.
'DarkNetToNodeV1_debug.exe' (Win32): Loaded 'C:\Windows\System32\wship6.dll'. Cannot find or open the PDB file.
Exception thrown at 0x00007FFF69CC90D3 (nvcuda.dll) in DarkNetToNodeV1_debug.exe: 0xC0000005: Access violation reading location 0x0000000082FBF000.

The program '[3168] DarkNetToNodeV1_debug.exe' has exited with code 0 (0x0).

Is there anything that I have missed in the setup or do I have to take an extra step to allow the Openframeworks app to utilize the GPU/CUDA?

Best

Doug

'list1 *read_data_cfg(char *)': cannot convert argument 1 from 'const char *' to 'char *

First of all, so exited about this addon!

On my Windows PC (Win 10, Visual Studio 2015, of_v0.9.8) I tried to follow the instructions and build example-yolo2 and example-imagenet

I get the following error for both examples:

'list1 *read_data_cfg(char *)': cannot convert argument 1 from 'const char *' to 'char *'
The reference to the error is ofxDarknet.cpp line 19

Windows build errors help?

Hello, I'm new to all this, so sorry if this is the wrong place to ask -- I don't really understand how this is supposed to work without .cpp files with the same named .h files, as it appears the .h files call functions that have no source. VS tells me to create a definition of the functions in its ___.cpp file. I guessed that the lib darknet_release.lib contained these .cpp function definitions and the "define" at the start of the .h files points to that somehow?

Anyway I get this error despite setting platform to x64 mode, added Cuda 8.0 to build customization file list, copied pthreadVC2.dll from ofxDarknet\libs\3rdparty\dll\x64 to my apps bin folder. Any help would be really appreciated.

"error LNK2019: unresolved external symbol"

screenshot 25

Most, if not all, of the .h header files in libs/darknet/include are pointing to non-existing function definitions.

Some info:

%(AdditionalDependencies);pthreadVC2.lib;cublas.lib;cudart.lib;cudnn.lib;curand.lib;darknet_debug.lib;ippicvmt.lib;libwebpd.lib;opencv_calib3d310d.lib;opencv_core310d.lib;opencv_features2d310d.lib;opencv_flann310d.lib;opencv_highgui310d.lib;opencv_imgcodecs310d.lib;opencv_imgproc310d.lib;opencv_ml310d.lib;opencv_objdetect310d.lib;opencv_photo310d.lib;opencv_shape310d.lib;opencv_stitching310d.lib;opencv_superres310d.lib;opencv_video310d.lib;opencv_videoio310d.lib;opencv_videostab310d.lib;zlibd.lib

Linux Lib pre compilation

File actually exists in path, but is not found by cmake

 Cannot specify link libraries for target
 /usr/local/cuda/lib64/libcudart_static.a which is not built by this
  project.

Windows issue with Opencv

not sure anyone of you has this issue under the windows
i got bunch of errors from opencv2\flann\matrix.h(69): error C2144 during the compiling
matrix.h(93): error C4430:
opencv2\flann\matrix.h(93): error C3646
etc......

ofxDarknet vs darknet app

My compiled version of the yolo ofxDarknet demo does not behave like the darknet demo application.
At startup, the yolo ofxDarknet demo shows tons of labels, then after a few seconds, no labels at all.
This dysfunctional behavior occurs with all yolo configs. What could be wrong?

yolo 9000 for object detection

Hello Everyone, i am trying to use yolo 9000 for object detection. i read yolo9000.cfg file using darknet. but, i am unable to read the weight files using darkflow.. could any one please help me out..

`
net=cv2.dnn.readNetFromDarknet("(r"C:\Users\Desktop\darknet-master\darknet-master\cfg\yolo9000.cfg")

net1=cv2.dnn.readNetFromDarknet(r"C:\Users\Desktop\darknet-master\darknet-master\yolo9000.weights")`

error Traceback (most recent call last)
in
----> 1 net1=cv2.dnn.readNetFromDarknet(r"C:\Users\Desktop\darknet-master\darknet-master\yolo9000.weights")

error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:207: error: (-212:Parsing error) Failed to parse NetParameter file: C:\Users\Desktop\darknet-master\darknet-master\yolo9000.weights in function 'cv::dnn::dnn4_v20190902::readNetFromDarknet'

cudnn support

darknet supports optional cudnn support, which tends to help conserve memory. i usually get out of memory errors upon instantiating the network unless almost everything is closed except the app, and i imagine others get the same, so it might be a good idea for us to use it. but i think the dylib is compiled without it at the moment. you can see that there are #ifdef CUDNN blocks in convolutional_layer.c and network.c, possibly others. might be a good idea to see how compiling with cudnn affects performance.

GPU=1 make fails

While CPU make succeeds and darknet works well, the GPU=1 make to enable GPU support fails.
I get the following compiling errors:

ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 115; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 144; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 227; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 257; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 341; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 361; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 379; error : Call has wrong number of parameters ptxas /tmp/tmpxft_00001c51_00000000-15_convolutional_kernels.compute_30.ptx, line 399; error : Call has wrong number of parameters ptxas fatal : Ptx assembly aborted due to errors Makefile:91: recipe for target 'obj/convolutional_kernels.o' failed make: *** [obj/convolutional_kernels.o] Error 255
System details:
OS: Ubuntu 16.04 x64
GPU: Nvidia GTX 1060
nvidia-smi output:

`+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.81 Driver Version: 384.81 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 106... Off | 00000000:01:00.0 On | N/A |
| 0% 43C P8 7W / 156W | 5955MiB / 6069MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1042 G /usr/lib/xorg/Xorg 197MiB |
| 0 1839 G compiz 77MiB |
| 0 2923 G ...-token=5D46E4CA8207FFF70E348E0EA2F3C753 108MiB |
| 0 28788 C /home/sami/miniconda2/bin/python 5567MiB |
+-----------------------------------------------------------------------------+`

Any suggestions? What CUDA and CUDNN versions are supported?

Thanks,
Sami

build errors on windows

Unfortunately, I am running into trouble:

C1083 cannot open include file: 'ofxOpenCv.h': No such file or directory

win10 x64, VS2015 (Community), ofxDarknet added via project generator and followed this: https://github.com/mrzl/ofxDarknet#setup

I have also tried to add ofxDarknet + ofxOpenCv to a new project and still get errors.

can't run in CPU mode

trying to run in CPU by commenting out cuda_set_device(0); and adding gpu_index = -1;to the top of the init. it works and appears to use CPU. however, if you do this and don't happen to have CUDA installed, their will be a linker error (can't find cublas, cudart, etc) so it won't work on non-CUDA machines. i think these are baked into the dylib. we could refactor the code or perhaps just build a separate CPU-only dylib.

Segmentation fault (core dumped)

I'm getting a segmentation fault running ofxDarknet on Ubuntu 18.0.4.

...
13 conv 512 3 x 3 / 1 1 x 1 x1024 -> 1 x 1 x 512
14 conv 425 1 x 1 / 1 1 x 1 x 512 -> 1 x 1 x 425
15 detection
Loading weights from data/yolov2-tiny.weights...Done!
Segmentation fault (core dumped)
/home/red/OF/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:184: recipe for target 'run' failed
make: *** [run] Error 139

Tried with yolo9000, tiny-yolo, yolov2-tiny, all same error. Tried reducing/changing subdivisons, batch size, dimensions, etc, to no effect.

Normal (non OFX) Darknet runs fine (when reducing the image dimensions to something very low) at higher dimensions I get the segmentation fault, my gtx 980 ti's memory is 6gb and should be capable of handling very small image dimensions. However with OFX Darknet I get segmentation fault at sizes of 32x32 and 96x96.

Is there anyway, anyway at all, to get ofxDarknet to work on a linux machine? An older version?

edit: btw, no idea what I'm doing but when trying to place the new darknets files into ofxdarknet i get the error
OF/addons/ofxDarknet/src/ofxDarknet.h:93:2: error: ‘list1’ does not name a type; did you mean ‘list’?
list1 *options1;
^~~~~

after putting darknet.h into ofxdarknet's src folder -- again this is probably totally wrong to do but thought i'd give it a shot...

edit2: replace 'list' in darknets files with list1, now error is

/OF/addons/ofxDarknet/src/ofxDarknet.cpp:18: error: invalid conversion from ‘const char’ to ‘char’ [-fpermissive]
net = parse_network_cfg( cfgfile.c_str() );
~~~~~~~~~~~~~^~**
edit3: I stumbled about and fixed the above const char issue, but I'm dead stuck now as no clue how to even go about fixing the below error.

OF/addons/ofxDarknet/src/ofxDarknet.cpp:103: error: use of undeclared identifier 'get_network_output_layer_gpu'

dyld: Library not loaded: @rpath/libdarknetOSX.dylib

the OSX dynlib for darknet is not found at runtime unless it is placed right next to the app. as a temp fix, put a copy of libdarknetOSX.dylib beside the app itself.

to fix this, we need to fix the linker location for the dylib.

Can't cmake Darknet

So I noticed that Darknet was being really slow and not using the GPU at all (I am new to this btw), I couldn't find an option within the provided openframeworks code to turn on GPU usage. If I'm being really silly and theres a way to do this without compiling my own darknet (which I'm finding impossible to do), let me know? ofxDarknet runs absolutely fine, just terribly slow. Could someone tell me what I need to do to make ofxDarknet utilize the GPU? And if they know why cmake does not work?

I'm using Windows 10, Visual Studio 2017 64bit, Cuda 8.0/cudnn installed/opencv installed. I tried compiling Darknet with the provided cmake with AlexeyAB and no luck either.

With "cmake ." command in Git Bash

$ cmake .
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.16.27026.1
-- The CXX compiler identification is MSVC 19.16.27026.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CUDA Version:
-- CUDA Libararies: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/lib/Win32/cudart_static.lib
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_32,code=sm_32;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52
-- CUDA FOUND!
CMake Error at CMakeLists.txt:89 (target_link_libraries):
Cannot specify link libraries for target "C:/Program Files/NVIDIA GPU
Computing Toolkit/CUDA/v9.0/lib/Win32/cudart_static.lib" which is not built
by this project.

-- Configuring incomplete, errors occurred!
See also "E:/Misc_Projects/DarkNet/ofxDarknet-master/libs/darknet/cMake/CMakeFiles/CMakeOutput.log".


In cmake-gui I get the following...

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
CUDA Version:
CUDA Libararies: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cudart_static.lib
CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_32,code=sm_32;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52
CUDA FOUND!
CMake Error at CMakeLists.txt:89 (target_link_libraries):
Cannot specify link libraries for target "C:/Program Files/NVIDIA GPU
Computing Toolkit/CUDA/v8.0/lib/x64/cudart_static.lib" which is not built
by this project.

Configuring incomplete, errors occurred!
See also "E:/Misc_Projects/DarkNet/Build/CMakeFiles/CMakeOutput.log".
See also "E:/Misc_Projects/DarkNet/Build/CMakeFiles/CMakeError.log".

COCO dataset

Hi,

I can't seem to get the COCO dataset working.
Everything compiles and runs fine but there is no detection going on (using Windows)

I am using this setup:
std::string cfgfile = ofToDataPath( "cfg/yolo.cfg" );
std::string weightfile = ofToDataPath( "yolo.weights" );
std::string nameslist = ofToDataPath( "cfg/coco.names" );
darknet.init( cfgfile, weightfile, nameslist );

I am using the coco.names file because I can't seem to find the names.list file.

Everything works fine with the VOC model.

Thank you so much for your help.

Build problem on macOS

I'm trying to rebuild the darknet dylib after fixing a small error in the source code. But after building, I'm not able to call cuda_set_device(0);. It shows the following error at runtime:

CUDA Error: CUDA driver version is insufficient for CUDA runtime version
Assertion failed: (0), function check_error, file /Users/jongejan/dev/of/addons/ofxDarknet/libs/darknet/include/cuda.c, line 39.

I build the library by running

$ cmake .
$ make

I'm building on a OSX 10.11.6,
CUDA Driver Version: 8.0.53
GPU Driver Version: 10.10.14 310.42.25f02

The examples work fine before I rebuild the library. What version of the toolkit have you used for building the library?

Can't run in Linux (Ubuntu 16.04)

I cloned genekogan/linux branch, and I edited addon.config for my local path, and run example-yolo2 by following command, then I encountered error...

$ make clean
$ make 
$ make run

.
.
.

g++ -c -O3 -DNDEBUG -march=native -mtune=native -Wall -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123  -pthread -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/kida/openFrameworks_098/libs/fmodex/include -I/home/kida/openFrameworks_098/libs/glfw/include -I/home/kida/openFrameworks_098/libs/glfw/include/GLFW -I/home/kida/openFrameworks_098/libs/glm/include -I/home/kida/openFrameworks_098/libs/glm/include/glm -I/home/kida/openFrameworks_098/libs/glm/include/glm/detail -I/home/kida/openFrameworks_098/libs/glm/include/glm/gtx -I/home/kida/openFrameworks_098/libs/glm/include/glm/gtc -I/home/kida/openFrameworks_098/libs/json/include -I/home/kida/openFrameworks_098/libs/kiss/include -I/home/kida/openFrameworks_098/libs/libxml2/include -I/home/kida/openFrameworks_098/libs/libxml2/include/libxml -I/home/kida/openFrameworks_098/libs/poco/include -I/home/kida/openFrameworks_098/libs/svgtiny/include -I/home/kida/openFrameworks_098/libs/tess2/include -I/home/kida/openFrameworks_098/libs/utf8/include -I/home/kida/openFrameworks_098/libs/utf8/include/utf8 -I/home/kida/openFrameworks_098/libs/utf8cpp/include -I/home/kida/openFrameworks_098/libs/utf8cpp/include/utf8 -I/home/kida/openFrameworks_098/libs/openFrameworks -I/home/kida/openFrameworks_098/libs/openFrameworks/gl -I/home/kida/openFrameworks_098/libs/openFrameworks/events -I/home/kida/openFrameworks_098/libs/openFrameworks/3d -I/home/kida/openFrameworks_098/libs/openFrameworks/app -I/home/kida/openFrameworks_098/libs/openFrameworks/types -I/home/kida/openFrameworks_098/libs/openFrameworks/math -I/home/kida/openFrameworks_098/libs/openFrameworks/communication -I/home/kida/openFrameworks_098/libs/openFrameworks/graphics -I/home/kida/openFrameworks_098/libs/openFrameworks/video -I/home/kida/openFrameworks_098/libs/openFrameworks/utils -I/home/kida/openFrameworks_098/libs/openFrameworks/sound -pthread -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/kida/openFrameworks_098/addons/ofxDarknet/libs -I/home/kida/openFrameworks_098/addons/ofxDarknet/src -Isrc -I/home/kida/openFrameworks_098/addons/ofxDarknet/libs/darknet/include -I/usr/local/cuda/include -I/home/kida/openFrameworks_098/addons/ofxOpenCv/src -I/home/kida/openFrameworks_098/addons/ofxOpenCv/libs -MMD -MP -MF /home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxOpenCv/src/ofxCvGrayscaleImage.d -MT /home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxOpenCv/src/ofxCvGrayscaleImage.o -o /home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxOpenCv/src/ofxCvGrayscaleImage.o -c /home/kida/openFrameworks_098/addons/ofxOpenCv/src/ofxCvGrayscaleImage.cpp

                             ^
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp: In member function ‘void ofxDarknet::init(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)’:
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp:18:43: error: ‘parse_network_cfg’ was not declared in this scope
  net = parse_network_cfg( cfgfile.c_str() );
                                           ^
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp:20:41: error: ‘load_weights’ was not declared in this scope
  load_weights( &net, weightfile.c_str() );
                             
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp: In member function ‘void ofxDarknet::train_rnn(std::__cxx11::string, std::__cxx11::string)’:
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp:346:51: error: ‘parse_network_cfg’ was not declared in this scope
  network net = parse_network_cfg( cfgfile.c_str() );
                                                   ^
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp:389:28: error: ‘save_weights’ was not declared in this scope
    save_weights( net, buff );
                            ^
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp:394:28: error: ‘save_weights’ was not declared in this scope
    save_weights( net, buff );
                            ^
/home/kida/openFrameworks_098/addons/ofxDarknet/src/ofxDarknet.cpp:399:26: error: ‘save_weights’ was not declared in this scope
  save_weights( net, buff );
                      
/home/kida/openFrameworks_098/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:336: recipe for target '/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o' failed
make[1]: *** [/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/kida/openFrameworks_098/addons/ofxDarknet/example-yolo2'
/home/kida/openFrameworks_098/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target 'Release' failed
make: *** [Release] Error 2
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl glfw3 gl glu glew gtk+-3.0 libmpg123 
/bin/sh: 1: ./example-yolo2: not found
/home/kida/openFrameworks_098/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:169: recipe for target 'run' failed
make: *** [run] Error 127

I can find load_weights and save_weights functions in libs/darknet/include/parser.h.

Why do xxx was not declared in this scope errors happen?

My enviroment is below.

  • Ubuntu 16.04
  • openFrameworks 0.9.8
  • cuda 8.0.61

Eclipse Problem

Hello, i included ofxDarknet with ofxGui in eclipse on linux(ubuntu) but nothing seems work

image

so do you guys have any idea ? i am new to openframeworks.

Video streaming

With the regular YOLO, it is possible to run directly on udp / rtp streams. How can I use this YOLO functionality from within ofxDarknet?

trying to run examples but they close immediately after opening

Hi,

I am trying to build the examples that come with the addon in VS2015, OF0.9.8 and windows 10. The solution builds, but when trying to run the example either on Debug or Release mode for x64, the console window opens shows some output and closes immediately after starting to load weights. The following is the debugging output. Any help or advice to get darknet working with openframeworks would be greatly appreciated. Thank you.

'example-imagenet.exe' (Win32): Loaded '\of_v0.9.8_vs_release\addons\ofxDarknet\example-imagenet\bin\example-imagenet.exe'. Module was built without symbols.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Users\paulo\Documents\of_v0.9.8_vs_release\addons\ofxDarknet\example-imagenet\bin\FreeImage.dll'. Module was built without symbols.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\vcomp120.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\fltLib.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Users\paulo\Documents\of_v0.9.8_vs_release\addons\ofxDarknet\example-imagenet\bin\fmodex64.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\cudart64_80.dll'. Module was built without symbols.
'example-imagenet.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\cublas64_80.dll'. Module was built without symbols.
'example-imagenet.exe' (Win32): Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\curand64_80.dll'. Module was built without symbols.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvdlistx.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Unloaded 'C:\Windows\System32\version.dll'
'example-imagenet.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvdlistx.dll'
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvoglv64.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\wtsapi32.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Symbols loaded.
The thread 0x2190 has exited with code 0 (0x0).
The thread 0x8554 has exited with code 0 (0x0).
The thread 0x8c34 has exited with code 0 (0x0).
The thread 0x5e94 has exited with code 0 (0x0).
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\nvspcap64.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\winsta.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvdlistx.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvdlistx.dll'
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvldumdx.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\imagehlp.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Symbols loaded.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvrzi.inf_amd64_8b6520f7e1d6ff54\nvwgf2umx.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraWhitelisting64.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Unloaded 'C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraWhitelisting64.dll'
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\nvapi64.dll'. Cannot find or open the PDB file.
The thread 0x4ae8 has exited with code 0 (0x0).
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\nvcuda.dll'. Cannot find or open the PDB file.
'example-imagenet.exe' (Win32): Loaded 'C:\Windows\System32\nvfatbinaryLoader.dll'. Cannot find or open the PDB file.
The thread 0x8bf0 has exited with code 0 (0x0).
The thread 0x7e54 has exited with code 0 (0x0).
The thread 0x8fd4 has exited with code 0 (0x0).
The thread 0x7fd0 has exited with code 0 (0x0).
The thread 0x51f4 has exited with code 0 (0x0).
The thread 0x355c has exited with code 0 (0x0).
The thread 0x7fa8 has exited with code 0 (0x0).
The thread 0x15c0 has exited with code 0 (0x0).
The thread 0x2d4c has exited with code 0 (0x0).
The thread 0xbec has exited with code 0 (0x0).
The thread 0x27ec has exited with code 0 (0x0).
The thread 0x446c has exited with code 0 (0x0).
The program '[36784] example-imagenet.exe' has exited with code 0 (0x0).

cannot open source file "activations.h" on Windows

Hi

I'm attempting to build some of the examples on Windows (Win 10 using Visual Studio 2015).

With all the examples I am running in to the same issue, where I get tons of errors stating that Visual Studio cannot open a lot of .h files from ofxDarknet.h.

skaermbillede 12

I have it running just fine on Mac and am not very experienced using openFrameworks in Visual Studio, so maybe I'm just doing a simple thing wrong?

First i build the project using the project generator. Inside Visual Studio I have it set to x64 mode, have ticked CUDA 8.0, set the C/C++ compile settings to default and copied the
pthreadVC2.dll to the applications bin folder.

Am I missing something?

specifying addons_config.mk

in order to build projects with ofxDarknet from the project generator, we need to fill out the addons_config.mk file. i've gotten it to include all the darknet headers, but we still need to get it to find cuda in the search paths. in xcode, this would be inserting ../../../addons/ofxDarknet/libs/darknet/lib/osx/ /usr/local/cuda/lib /Developer/NVIDIA/CUDA-8.0/lib/ into the library search path and runpath search path in the build settings.

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.