Skip to content

Can the parameters of the trained model of onlineHD be quantized into binary? #180

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

Open
yinchen1233 opened this issue Apr 17, 2025 · 1 comment

Comments

@yinchen1233
Copy link

After training, I get a trained onlineHD model, but the model is very large when saved. Can I reduce the model size by quantizing the model into binary?

@mikeheddes
Copy link
Member

If you are using the Centroid class then you can access the weights and apply any quantization function to reduce the model size. You can use PyTorch functions to store and load the weights. When you load them you would need to convert the weights back to floats. One thing to keep in mind is that weight binarization will likely decrease the model accuracy.

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