taki0112/GAN_Metrics-Tensorflow

kid standard deviation calculation: duplicated division by n_blocks?

xunings opened this issue · 0 comments

Hi,
I found the following lines (the kid stddev calculation code) quite confusing :

lambda: math_ops.reduce_sum(math_ops.square(ests - mn)) / (n_blocks_ - 1))

return mn, math_ops.sqrt(var / n_blocks_)

It seems that the division by n_blocks is duplicated in the above two lines.