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

No weights after training #343

Open
K-R-O-K-O opened this issue Dec 29, 2024 · 1 comment
Open

No weights after training #343

K-R-O-K-O opened this issue Dec 29, 2024 · 1 comment
Assignees

Comments

@K-R-O-K-O
Copy link

Hey everyone, I am trying to develop my own CNN for diagnostic application. I constructed the custom CNN and dataloader, did the training successfully. In log dir I obtained checkpoint.pth.tar, best.pth.tar, qat_best.pth.tar, qat_checkpoint.pth.tar. Now I copied one of this files to ai8x-synthetizer to convert it to .c files but I'm obtaining WARNING: All weights for conv9.op.weightare zero. for every layer which is not right.

Am I missing some step between the training and the synthetizer phase?

@ermanok ermanok self-assigned this Jan 6, 2025
@ermanok
Copy link
Contributor

ermanok commented Jan 6, 2025

First of all, we suggest using QAT models to have better performance with quantized model. All the models in the log directory are floating point but qat models are trained to optimize the quantized weights. Therefore, whichever model you want to use, you have to run quantize.py to quantize your floating point model. I doubt you skip this quantization step before synthesize the model for the hardware.

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