Closed csalcedo001 closed 3 years ago
Double-checking my code I just realized my program was performing two forward passes instead of a forward and backward pass. After changing the last line to x_hat, _ = model._transform.inverse(z, context=torch.nn.Identity()(None))
the reconstruction was perfect.
Sorry for the false alarm, I'm closing this issue.
Hi!
I was playing with RealNVP and tried to reconstruct samples after a forward and backward pass through the flow. After training the network on moons dataset, I ran the following program
The following plots show the distribution of the points after each pass
Original x:
Normalized z:
Reconstruction x_hat:
The forward pass looks great, since it forms a normal distribution. However, the backward pass doesn't reconstruct the input x_hat similar to x as expected. Any feedback on what is happening would be of great help. Thanks!