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

Exception: Only binarized weights supported when use deploy_bw.prototxt in FINN #4

Open
saraballeri opened this issue Oct 24, 2018 · 2 comments

Comments

@saraballeri
Copy link

Hi,
I would to generate an hardware design through FINN, passing it a prototxt of any BNN.
I don't understand if the folder https://github.com/zhaoweicai/hwgq/tree/master/examples/imagenet already contains prototxts suitable for FINN (as well as caffemodels in https://github.com/zhaoweicai/hwgq#models).
As the guide of FINN says, I have tried to run:
python FINN/bin/finn --device=pynqz1 --prototxt=FINN/inputs/deploy_bw.prototxt --mode=estimate
in which deploy_bw.prototxt is the prototxt contained in https://github.com/zhaoweicai/hwgq/tree/master/examples/imagenet/alex-hwgq-3ne-clip-poly-320k
but i get the exception:
....
File "/home/user/FINN/FINN/backend/fpga/backend_fpga.py", line 64, in passConvertToFPGALayers ret += [layers_fpga.FPGABipolarConvThresholdLayer(L)] File "/home/user/FINN/FINN/backend/fpga/layers_fpga.py", line 337, in __init__ raise Exception("Only binarized weights supported") Exception: Only binarized weights supported

Can you clarify me this doubt?
Thanks,
Sara

@maltanar
Copy link
Contributor

maltanar commented Oct 24, 2018

Hi Sara,

As you can see from the error output this is not a HWGQ issue but a FINN issue, so this issue belongs to the FINN GitHub repo.

@saraballeri
Copy link
Author

Yes, i saw there. But then all your prototxts and caffemodels are binarized? 1 bit weight and 1 bit activation?
Thanks,
Sara

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