Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake based windows port #62

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open

cmake based windows port #62

wants to merge 2 commits into from

Conversation

es0m
Copy link

@es0m es0m commented Jan 25, 2016

Hi, I created a cmake file to generate a Windows version of your sdk. Tested with Eigen32 and OpenCV 2.4.12.

Support for VS 2012, 2013, 2015 32 & 64bit.

It requires Eigen3. Linux and "tool" examples are generated, the OpenCV example only if OpenCV is found.

Usage (in DeepBeliefSDK):

cd source
mkdir build
cd build
cmake .. -DEIGEN3_INCLUDE_DIR=...path_to_Eigen _directory cmake --build . --config Release
Release\jpcnn.exe  --network ..\..\networks\jetpac.ntwk -m single --input ..\..\examples\SimpleLinux\lena.png -t

Output:

0.017263        wool
0.016598        cardigan
0.011202        kimono
0.010373        miniskirt
0.014470        crayfish
0.015726        brassiere
0.015174        harp
0.017674        sandal
0.023290        holster
0.012977        velvet
0.060942        bonnet
0.019411        stole
0.027732        maillot
0.010727        gown
0.073340        wig
0.012688        hand blower
0.029984        stage
0.026289        umbrella
0.012405        sarong
Classification took 307 milliseconds

To specify & build the OpenCV example, use

cmake .. -DEIGEN3_INCLUDE_DIR=...path_to_Eigen _directory -DOpenCV_DIR=..path_to_OpenCVConfig.cmake 

to create the .sln file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant