Skip to content

CNN: Fix wrong output values due to missing dequant #25

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

Merged
merged 3 commits into from
Dec 23, 2024
Merged

Conversation

jonnor
Copy link
Contributor

@jonnor jonnor commented Dec 23, 2024

The MNIST example was just scoring 60% when running using emlearn-cnn. This turned out to be due to not using the dequantize option in TinyMaix. With this fixed, the score was 94% on 5 samples per class - quite close to the 97% in the validation set.

The outputs were frequently invalid without this, sometimes
containing NaN values or huge numbers
This brings the MNIST example from 60% to 94% accuracy
@jonnor jonnor merged commit dae6e61 into master Dec 23, 2024
2 checks passed
@jonnor jonnor deleted the cnn-dequant branch December 23, 2024 17:25
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

Successfully merging this pull request may close these issues.

1 participant