Skip to content

Potential bug detected for high-dimension real NVP #5

@kfzyqin

Description

@kfzyqin

I found the backflow of real NVP cannot reconstruct the original input data. This is caused by a bug in code when the dimension is more than 2:

x0, x1 = x[:,::2], x[:,1::2]

z0, z1 = z[:,::2], z[:,1::2]

They should be:

x0, x1 = x[:, :self.half_dim], x[:, self.half_dim:]
z0, z1 = z[:, :self.half_dim], z[:, self.half_dim:]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions