9a8d91022cfde0a380d8700be76d6ddbd716a2af,robosat/tools/train.py,,train,#Any#Any#Any#Any#Any#Any#,116
Before Change
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 training images and labels"
After Change
for mask, output in zip(masks, outputs):
prediction = output.detach()
prediction.requires_grad = False
iou.add(mask.float(), prediction.max(0)[1].float())
assert num_samples > 0, "dataset contains training images and labels"
In pattern: SUPERPATTERN
Frequency: 4
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: train
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: castorini/honk
Commit Name: cf9632ada7ea82eba32d9ab5e32ff32ea0a6c02e
Time: 2018-06-24
Author: x389liu@gmail.com
File Name: utils/train.py
Class Name:
Method Name: print_eval
Project Name: Scitator/catalyst
Commit Name: 7f2a17f685b1088b50fc1f522e180f10502b6db2
Time: 2018-11-18
Author: ngxbac.dt@gmail.com
File Name: dl/callbacks.py
Class Name: IOUCallback
Method Name: on_batch_end