mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-08 14:39:00 +00:00
Switch net to eval mode in eval.py
Former-commit-id: 3ab827241455818c7b81172a426d805f9ace0f8f
This commit is contained in:
parent
3fefc25199
commit
b1ac7151b4
1
eval.py
1
eval.py
|
@ -6,6 +6,7 @@ from dice_loss import dice_coeff
|
||||||
|
|
||||||
def eval_net(net, dataset, gpu=False):
|
def eval_net(net, dataset, gpu=False):
|
||||||
"""Evaluation without the densecrf with the dice coefficient"""
|
"""Evaluation without the densecrf with the dice coefficient"""
|
||||||
|
net.eval()
|
||||||
tot = 0
|
tot = 0
|
||||||
for i, b in enumerate(dataset):
|
for i, b in enumerate(dataset):
|
||||||
img = b[0]
|
img = b[0]
|
||||||
|
|
Loading…
Reference in a new issue