You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this does not generalize when the num_codebooks parameters is set to 2 or more.
I think if the utilization of codebook 1 is 97% and codebook 2 is 93%, this should report (97+93)/2 = 95%, for example
Possible, ugly solution (for a single item, not a batch)
In the examples, you report
f"active %: {indices.unique().numel() / num_codes * 100:.3f}"
, for example:https://github.com/lucidrains/vector-quantize-pytorch/blob/master/examples/autoencoder_fsq.py#L76
But this does not generalize when the
num_codebooks
parameters is set to 2 or more.I think if the utilization of codebook 1 is 97% and codebook 2 is 93%, this should report (97+93)/2 = 95%, for example
Possible, ugly solution (for a single item, not a batch)
The text was updated successfully, but these errors were encountered: