array2hexstring This value is not permitted by chosen dtype. #1129
Replies: 1 comment 4 replies
-
Hi, your input quantizer/MultiThreshold converts UINT8 inputs to INT8 for the first conv layer. Thus, its thresholds should fit into a UINT8 representation (same as its input). However, the thresholds look like this: It contains 256 as a maximum value which does not fit into UINT8. The offending thresholds should be clipped during streamlining, but there remains a bug in FINN which prevents clipping in this case. #1030 fixes this. Can you try with this PR applied? It worked for me on your code provided above. As a side note, your thresholds for the input quantization contain mostly '0' and '256' values, suggesting that your model only "makes use" of a very small part of the 8 bit value range. If your input is UINT8 image data, this could be a scenario where you don't need any additional input quantization as part of the FINN accelerator at all. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, it is me, again, Matteo Abrate Physics Department Torino, i'm struggling with FINN to implement a very simple ConvNet for image recognition, the images I'm trying to classify are 48x48 int8 8that could be generated in the 0-255 range or in the 0-1) images. I tried to develop the net following the cybercecurity example without success because the implementation fail. So i try again now following the cnv_end2end:ecample but I arrive at the end and there is an error regarding dtype. Please help me, i investigated the ONNX models and it appears to be a mix of int8, int32 and uint8 dtype inside the models, i can't understand from where they are defined, the only thing I defined are the Int8Bias in the model. please help me understand why every try of implementation of this simple model is failing, i also have done quantization aware training and i have the tools to modify the range of input of the net from 0-255 or 0-1 or everything i want because i'm generating the dataset for the task. I'm attaching also the ONNX files if someone will take some time to help me out, this work will probably lead to a publication so if someone of you developers of FINN could partecipate and help it will be mentioned.
Matteo Abrate
Researcher Physics UNITO (Italy)
onnx.zip
This is the output:
Beta Was this translation helpful? Give feedback.
All reactions