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

Python wrapper? #55

Open
danielchalef opened this issue Aug 26, 2015 · 1 comment
Open

Python wrapper? #55

danielchalef opened this issue Aug 26, 2015 · 1 comment

Comments

@danielchalef
Copy link

Hi all,

Is anybody aware of a Python wrapper for the DeepBeliefSDK?

Daniel

@NikhilPeri
Copy link

NikhilPeri commented May 26, 2016

Hey Daniel,

I was able to have sucess importing the libjpcnn.so (or .dll) into python by using ctypes.
Since this is basically a c interface. Take a look at the sinppet below it might help

import ctypes
lib = ctypes.cdll.LoadLibrary('[path]/libjpcnn.so')
network = lib.jpcnn_create_network([path]/ccv2012.ntwk')
lib.jpcnn_print_network(network)

Hope this will help

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

No branches or pull requests

2 participants