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

How to pass calibration data for real time model with buffers ?? #152

Open
basp-2024 opened this issue Jan 23, 2025 · 2 comments
Open

How to pass calibration data for real time model with buffers ?? #152

basp-2024 opened this issue Jan 23, 2025 · 2 comments
Assignees

Comments

@basp-2024
Copy link

basp-2024 commented Jan 23, 2025

I am trying to quantize my real-time causal audio model (Conv2d + GRU+ Dense + TransConv2D). For this model I have buffers for (Conv2D and TransConv2D) and hidden state for GRU that need to be passed with every frame starting with zero values. The buffers need get updated for every frame.

@cyndwith
Copy link
Collaborator

@basp-2024 calibration dataset is expected to be a subset / representative dataset from training / validation. In this case, you could treat this as model with multiple inputs (you might have to save these results from the float model).

Please, share more details if you are facing any specific issue.

@cyndwith cyndwith self-assigned this Jan 30, 2025
@basp-2024
Copy link
Author

I’m attaching the details on how I’m calibrating and quantizing the model. The model takes a single time frame as input, along with the encoder(Conv2D), GRU, and decoder(Conv2D Transpose) buffers. These buffers need to be passed with every frame, starting from zero values, and updated with each frame. However, the results are not as good as expected, and I suspect the calibration process might be the issue. Could you please assist me in improving the performance.

Thanks

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