0181fe9fc837b8cdcc612375f2f174c5652ef87a,example/mpii.py,,validate,#Any#Any#Any#Any#Any#,194

Before Change



        // generate predictions
        preds = final_preds(output[-1].data.cpu(), meta["center"], meta["scale"], [64, 64])
        for n in range(output[-1].size(0)):
            predictions[meta["index"][n], :, :] = preds[n, :, :]

After Change


        loss = 0
        for o in output:
            loss += criterion(o, target_var)
        acc = accuracy(score_map.cuda(), target, idx)

        // generate predictions
        preds = final_preds(score_map, meta["center"], meta["scale"], [64, 64])
        for n in range(score_map.size(0)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: bearpaw/pytorch-pose
Commit Name: 0181fe9fc837b8cdcc612375f2f174c5652ef87a
Time: 2017-06-16
Author: platero.yang@gmail.com
File Name: example/mpii.py
Class Name:
Method Name: validate


Project Name: catalyst-team/catalyst
Commit Name: 2edde6d0ec3d1cef3254613cc942e8b0533835e6
Time: 2020-04-10
Author: scitator@gmail.com
File Name: tests/_tests_scripts/z_mvp_mnist.py
Class Name: CustomRunner
Method Name: _handle_batch