Skip to content

Commit

Permalink
evaluation neuromast
Browse files Browse the repository at this point in the history
  • Loading branch information
akila-14 committed Sep 3, 2024
1 parent c43fca6 commit 3696e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/20240902_ab_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def evaluate_model(model, dataloader, device):
recon_batch, mu, logvar = model(data)
mse = F.mse_loss(recon_batch, data, reduction='sum')
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
loss = mse + kld * 1e-5
loss = mse + kld * 1e-7

total_loss += loss.item()
total_mse += mse.item()
Expand Down

0 comments on commit 3696e15

Please sign in to comment.