Revert gaussian loss changes
This commit is contained in:
parent
7da2a0d5d4
commit
7a81d4e2f4
|
@ -127,11 +127,7 @@ class SRFlowNet(nn.Module):
|
||||||
else:
|
else:
|
||||||
z = epses
|
z = epses
|
||||||
|
|
||||||
logp = 0
|
logp = flow.GaussianDiag.logp(None, None, z)
|
||||||
for eps in epses:
|
|
||||||
logp = logp + flow.GaussianDiag.logp(None, None, eps)
|
|
||||||
logp_weight = opt_get(self.opt, ['networks', 'generator', 'flow', 'gaussian_loss_weight'], 1)
|
|
||||||
logp = logp * logp_weight
|
|
||||||
objective = objective + logp
|
objective = objective + logp
|
||||||
|
|
||||||
nll = (-objective) / float(np.log(2.) * pixels)
|
nll = (-objective) / float(np.log(2.) * pixels)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user