schwittlick / ofxDarknet

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

fix imagenet example and simplify init #13

Closed genekogan closed 7 years ago

genekogan commented 7 years ago

two changes bundled here:

1) change init process to remove the redundant .data files, refer to .names file directly. this resolves path issues in osx and i think doesn't affect windows (but check first).

2) fix bug in classify method, fixing imagenet example.

schwittlick commented 7 years ago

heya gene, this looks super, except from the paths for the tree/map configuration files for yolo9000. i tried something here https://github.com/mrzl/ofxDarknet/commit/4097f4d69391e2f845bf63bbbca651cff08272e9. this prepends the "../../../" that are necessary on osx to the path, via ifdefs. probably the most hacky solution there is, but nothing else really worked out. what do you think about it?