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: 3
Non-data size: 3
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: PyThaiNLP/pythainlp
Commit Name: 9aa5a88cbc1a36f19305f229b3a9abbeb9add631
Time: 2018-11-21
Author: ubuntu@ip-172-31-38-199.us-west-2.compute.internal
File Name: pythainlp/ulmfit/__init__.py
Class Name:
Method Name: document_vector