Bkmz21 / CompactCNNCascade

A binary library for very fast face detection using compact CNNs.
Other
156 stars 50 forks source link

Commercial use #9

Open deimsdeutsch opened 5 years ago

deimsdeutsch commented 5 years ago

I am interested in your project and i would like to use. But i am not able to compile and run your project. Please tell me the steps to test your code on Linux.

Bkmz21 commented 5 years ago

Hi, Use cmake https://preshing.com/20170511/how-to-build-a-cmake-based-project/

deimsdeutsch commented 5 years ago

Ubuntu 18 i have changed the

set(SOURCE "${CNNOD_SRC}/config.h" "${CNNOD_SRC}/test_accuracy.cpp") in CMakeLists.txt to test different test cases and none of them work !

test_perfomance.cpp This file needs windows and resource.h

There are no windows.h and resource.h files available in linux or your repo.

test_landmark.cpp

There is no GRANSAC.hpp header file needed by this file in your repo.

test_conv.cpp

error: ‘CNNPP_v2’ is not a member of ‘NeuralNetworksLib::SIMD’ SIMD::CNNPP_v2 cnnpp; ^~~~ /opt/github/CompactCNNCascade/src/CNNObjectDetector/test_conv.cpp:81:2: error: ‘cnnpp’ was not declared in this scope cnnpp.conv_3x3_lrelu_bn_max( ^~~~~ CMakeFiles/CNNObjectDetector.dir/build.make:62: recipe for target 'CMakeFiles/CNNObjectDetector.dir/src/CNNObjectDetector/test_conv.cpp.o' failed make[2]: [CMakeFiles/CNNObjectDetector.dir/src/CNNObjectDetector/test_conv.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/CNNObjectDetector.dir/all' failed make[1]: [CMakeFiles/CNNObjectDetector.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

test_accuracy.cpp

/opt/github/CompactCNNCascade/build# ./bin/CNNObjectDetector TEST ACCURACY

[CNNDetector] Initializing with max image size (1280, 720)!

[TEST ACCURACY] test allocate memory [TEST ACCURACY] cannels = 1: success [TEST ACCURACY] cannels = 3: success [TEST ACCURACY] cannels = 4: success

[TEST ACCURACY] test image converter Segmentation fault (core dumped)