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

How to convert to bnn.BinarySpatialConvolution from cudnn.SpatialConvolution.cu after training #2

Closed
stencilman opened this issue Oct 17, 2017 · 0 comments

Comments

@stencilman
Copy link

Firstly, thank you so much for releasing your code, it helps a lot in understanding your awesome paper!

If I understand the code correctly, for face-alignment, if I want to do everything from the scratch, I have to first train the floating point model using your codebase (https://github.com/1adrianb/face-alignment-training). However, I am missing the link of how you convert this model to the binary model that is available in https://github.com/1adrianb/binary-face-alignment which uses bnn.BinarySpatialConvolution

It seems to me that I need to call the function BinarySpatialConvolution:binarise(convLayer) somehow, but I am a bit confused. Do you have a script which replaces the floating conv modules with their binary counterparts? Do you also train in binary?

I will be very grateful if you can help me out, thanks a lot in advance.

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