Skip to content
Snippets Groups Projects
Commit e8f15d80 authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

change loss from MSE to L1

parent 5cf43e4d
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,8 @@ class Training:
self.lr_scheduler = torch.optim.lr_scheduler.StepLR(
self.optimizer, step_size=self.lr_decay_epoch, gamma=self.lr_decay_factor
)
self.loss_func = torch.nn.MSELoss(reduction="mean")
# self.loss_func = torch.nn.MSELoss(reduction="mean")
self.loss_func = torch.nn.L1Loss(reduction="mean")
def run(self):
for epoch in range(1, self.epochs + 1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment