jhjacobsen / invertible-resnet

Official Code for Invertible Residual Networks
MIT License
519 stars 78 forks source link

bits_per_dim #9

Closed hjzhang-forward closed 5 years ago

hjzhang-forward commented 5 years ago

HI! Thank you very much for your code. I have a question about the function bits_per_dim: Why do you want to add an 8?

def bits_per_dim(logpx, inputs): return -logpx / float(np.log(2.) * np.prod(inputs.shape[1:])) + 8.

Sincerely look forward to your reply!

Lmy0217 commented 5 years ago

Add noise ~ U(0, 1/256), log 256 = 8