Change back to train mode after eval

Former-commit-id: 773ef215d41c1f36dc0ed4159c12df89d792fbc3
This commit is contained in:
milesial 2020-05-05 09:15:07 -07:00 committed by GitHub
parent 74a3f2496f
commit b83c81f30b

View file

@ -29,4 +29,5 @@ def eval_net(net, loader, device):
tot += dice_coeff(pred, true_masks).item()
pbar.update()
net.train()
return tot / n_val