-
Notifications
You must be signed in to change notification settings - Fork 85
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
quantized binary classifier fails validation #539
Comments
@lhawana sorry for late reply. I can not reproduce follow your suggestion based on latest TIM-VX code. Could you share logs with following env variables: VSI_NN_LOG_LEVEL=5 Thanks |
Here are the logs with the variables on. I've included the output for each of the steps in my original description (10 classes, 3 classes, and 2 classes). 10 and 3 work, 2 does not. If it helps, we're operating on the tim-vx download that comes with the Yocto build 5.10.72 (hardknott). Also thanks for sharing the debug env variables with us - we had the first one but didn't know about the second one! |
@lhawana , Thank for the log. I want to confirm two things :
Is it possible try your test case with out default sdk in prebuilt directory? it is a simulator. |
I'm getting these numbers from the filenames installed on the board. Example: "./lib/libOpenVX.so.1.3.0". If this is not correct, please point me in the direction of how best to find this information. Not sure if this is helpful, but looking through the commits between the branch we pull from and the current branch, this commit looked like it might be relevant. |
@lhawana , libovxlib.so 1.1.0 is quite out-of-date. the source version you take from NXP fork also 1 years ago. Are you working with NXP imx.8plus ? If yes, i can ask NXP guys for help. Thanks |
Yes we are working with an NXP imx8mplus. Also at this point it is not simple for us to update to the latest version without risking breaking other parts of our pipeline. However, if there is a patch that helps fix the problem, we can look into applying that and testing it. Thank you again for your help! |
@lhawana , Thanks, I've forward your issue to them. |
Hi @lkaneda, Thanks, |
Hey @robert-kalmar , Apologies for the radio silence on this ticket. I'll be taking over the work in progress. Thanks! |
While debugging my own quantized models created with tim-vx, I came across the issue of binary classifiers failing the validation step. This seemed to happen across different models I had although everything was set up properly. Further, my models worked ok with a non tim-vx implementation.
I am able to reproduce the issue seen in my models with the lenet example provided in this repo by doing the following:
tim::vx::ShapeType fc4_weight_shape({500, 3});
tim::vx::ShapeType fc4_bias_shape({3});
tim::vx::ShapeType output_shape({3, 1});
I have tested this with models of varying amounts of classes and it only has a problem with 2-class classifiers. I noted there was a similar comment to this in issue 167 but it looks like the issue was resolved without discussing this part further.
The output error codes I get are:
D [operator():134]vsi_nn_SetupGraph Returned 0
D [operator():140]vsi_nn_VerifyGraph Returned -1
Some notes:
The text was updated successfully, but these errors were encountered: