Glow-PyTorch icon indicating copy to clipboard operation
Glow-PyTorch copied to clipboard

uniform binning under normal_flow function in model.py

Open MichalisLazarou opened this issue 4 years ago • 2 comments

Hey,

Many thanks on your nicely written code. I am trying to understand better normalizing flows but I am struggling to understand in the normal_flow function the use of uniform_binning_correction function. As I can see it adds a small offset of 1/256 to every value of x, why is this the case? I assume this is because the pixels are discretized, in case the function is continuous how will normalizing flows work there?

MichalisLazarou avatar Jul 10 '21 12:07 MichalisLazarou

@MichalisLazarou Have you found an intuition or explanation for this function? Thanks

MaveriQ avatar Jun 28 '22 13:06 MaveriQ

You can reference UNIFORM DEQUANTIZATION in this paper.

GitYCC avatar Nov 04 '22 05:11 GitYCC