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

Can you explain the logic of updated_ema_cluster_size in VectorQuantizerEMA? #248

Open
wztdream opened this issue Jul 21, 2022 · 0 comments

Comments

@wztdream
Copy link

Hi,
It seems updated_ema_cluster_size in VectorQuantizerEMA use small epsilon to avoid zero in denominator, but the formula is strange to me, so can you explain the logic here, and why not directly use something like x=x+epsilon?
https://github.com/deepmind/sonnet/blob/d1cd37117bcb98223b3e4b930717d418abb76484/sonnet/src/nets/vqvae.py#L270-L271

@wztdream wztdream changed the title Can you expain the logic of updated_ema_cluster_size in VectorQuantizerEMA? Can you explain the logic of updated_ema_cluster_size in VectorQuantizerEMA? Jul 21, 2022
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

1 participant