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"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: castorini/honk
Commit Name: cf9632ada7ea82eba32d9ab5e32ff32ea0a6c02e
Time: 2018-06-24
Author: x389liu@gmail.com
File Name: utils/train.py
Class Name:
Method Name: print_eval