7258ae72e3835a6f947a983e200d3c7861a6050c,test.py,,test,#Any#Any#Any#,38
Before Change
with torch.no_grad():
pred = torch.zeros(1, args.num_class, segSize[0], segSize[1])
pred = Variable(pred).cuda()
for img in img_resized_list:
feed_dict = batch_data.copy()
feed_dict["img_data"] = img
After Change
// forward pass
pred_tmp = segmentation_module(feed_dict, segSize=segSize)
pred = pred + pred_tmp.cpu() / len(args.imgSize)
_, preds = torch.max(pred, dim=1)
preds = as_numpy(preds.squeeze(0))
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 4
Instances Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: 7258ae72e3835a6f947a983e200d3c7861a6050c
Time: 2018-05-15
Author: zhaohang0124@gmail.com
File Name: test.py
Class Name:
Method Name: test
Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: db84b80878a5c41fcd142f82e62191fb681a3c67
Time: 2018-05-15
Author: zhaohang0124@gmail.com
File Name: test.py
Class Name:
Method Name: test
Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: 7258ae72e3835a6f947a983e200d3c7861a6050c
Time: 2018-05-15
Author: zhaohang0124@gmail.com
File Name: eval_multipro.py
Class Name:
Method Name: evaluate
Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: db84b80878a5c41fcd142f82e62191fb681a3c67
Time: 2018-05-15
Author: zhaohang0124@gmail.com
File Name: eval_multipro.py
Class Name:
Method Name: evaluate
Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: 7258ae72e3835a6f947a983e200d3c7861a6050c
Time: 2018-05-15
Author: zhaohang0124@gmail.com
File Name: eval.py
Class Name:
Method Name: evaluate
Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: db84b80878a5c41fcd142f82e62191fb681a3c67
Time: 2018-05-15
Author: zhaohang0124@gmail.com
File Name: eval.py
Class Name:
Method Name: evaluate