Replies: 1 comment
-
The activation layers must be quantized with 1 bit too for the nodes to use BINARY finn_datatype, e.g : However I now have the following error, which I don't understand how to resolve : |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to make a model using binary quantization. I tried to reproduce the parameters used in CNV-W1A1 layers in my model as much as possible and I use almost the same build flow, but I'm not able to get the nodes of my ONNX graph to use BINARY finn_datatype.
The first image is from the CNV-W1A1 in the cnv_end2end_example notebook, you can see that the 1st MultiThreshold node outdtype is BINARY. The second image is from my model (it's a U-Net btw), you can see that the 1st MultiThreshold node outdtype is INT8.
What am I supposed to do to build a binary network?
You can find here the .onnx of my streamlined model, and the .py describing my model: unet_streamlined.zip, unet_julien.zip
Also I'm getting this 2 warnings, I think it's related to my problem:
And further I get the error:
AssertionError: cycle-free graph violated: partition depends on itself
, but it's no surprise since I can't convert Im2Col nodes to HLS nodes.Julien
Beta Was this translation helpful? Give feedback.
All reactions