Skip to content

Question about params in decoder #9

@gitlabspy

Description

@gitlabspy

Hi, thanks for sharing your great works !!!! It's so amazing!
I have a question about the decoder, I wonder if you can help me out a bit.
Can you please explain what these three params are for? ( bias_xs, gain and bias )

vdvae/vae.py

Lines 186 to 190 in ea35b49

self.bias_xs = nn.ParameterList([nn.Parameter(torch.zeros(1, self.widths[res], res, res)) for res in self.resolutions if res <= H.no_bias_above])
self.out_net = DmolNet(H)
self.gain = nn.Parameter(torch.ones(1, H.width, 1, 1))
self.bias = nn.Parameter(torch.zeros(1, H.width, 1, 1))
self.final_fn = lambda x: x * self.gain + self.bias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions