forked from mrq/DL-Art-School
Fix dvae test failure
This commit is contained in:
parent
019acfa4c5
commit
1287915f3c
|
@ -228,7 +228,7 @@ class DiscreteVAE(nn.Module):
|
||||||
out = d(out)
|
out = d(out)
|
||||||
else:
|
else:
|
||||||
# This is non-differentiable, but gives a better idea of how the network is actually performing.
|
# This is non-differentiable, but gives a better idea of how the network is actually performing.
|
||||||
out = self.decode(codes)
|
out, _ = self.decode(codes)
|
||||||
|
|
||||||
# reconstruction loss
|
# reconstruction loss
|
||||||
recon_loss = self.loss_fn(img, out, reduction='none')
|
recon_loss = self.loss_fn(img, out, reduction='none')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user