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
score_map = output[-1].data.cpu()
if flip:
flip_input_var = torch.autograd.Variable(
torch.from_numpy(fliplr(inputs.clone().numpy())).float().cuda(),
volatile=True
)
flip_output_var = model(flip_input_var)
flip_output = flip_back(flip_output_var[-1].data.cpu())
score_map += flip_output
loss = 0
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: matplotlib/matplotlib
Commit Name: d1ae68571b20c86eda94f74dc035b5c22cc8e5bd
Time: 2018-09-02
Author: 2836374+timhoffm@users.noreply.github.com
File Name: examples/axes_grid1/simple_axesgrid.py
Class Name:
Method Name:
Project Name: epfl-lts2/pygsp
Commit Name: 704174e94846fecfb5162c56d3305057fc4ba734
Time: 2015-09-07
Author: lionel.martin@epfl.ch
File Name: pygsp/graphs/community.py
Class Name: Community
Method Name: __init__