MHVali / Noise-Substitution-in-Vector-Quantization

Python implementation of the code for NSVQ
MIT License
6 stars 0 forks source link

Paranthesis error in NSVQ #3

Closed jacobgorm closed 5 months ago

jacobgorm commented 7 months ago

hi, there seems to be a small issue with this code:

 # defining vector quantization error
    vq_error = (norm_quantization_residual / norm_random_vector + self.eps) * random_vector

I suppose self.eps is used to avoid division by zero, but in that case the parentheses appear to be placed wrong.

MHVali commented 5 months ago

Hi,

Thanks for your comment! I corrected it.