9a8d91022cfde0a380d8700be76d6ddbd716a2af,robosat/tools/train.py,,validate,#,156
Before Change
running_loss += loss.item()
for mask, output in zip(masks, outputs):
mask = mask.data.cpu().numpy()
prediction = output.data.max(0)[1].cpu().numpy()
iou.add(mask.ravel(), prediction.ravel())
assert num_samples > 0, "dataset contains validation images and labels"
After Change
running_loss += loss.item()
for mask, output in zip(masks, outputs):
iou.add(mask.float(), output.max(0)[1].float())
assert num_samples > 0, "dataset contains validation images and labels"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: mapbox/robosat
Commit Name: 9a8d91022cfde0a380d8700be76d6ddbd716a2af
Time: 2018-09-12
Author: o@courtin.co
File Name: robosat/tools/train.py
Class Name:
Method Name: validate
Project Name: mapbox/robosat
Commit Name: 9a8d91022cfde0a380d8700be76d6ddbd716a2af
Time: 2018-09-12
Author: o@courtin.co
File Name: robosat/tools/train.py
Class Name:
Method Name: train
Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 96ae969993c6f476314c2bfc639a67f83fe97239
Time: 2019-04-26
Author: eriklindernoren@live.se
File Name: utils/utils.py
Class Name:
Method Name: get_batch_statistics