5921740d9f69d853fe543c52811b590a398031f5,scripts/segmentation/test.py,,test,#Any#,17
Before Change
im_paths = dsts
predicts = evaluator.parallel_forward(data)
for predict, impath in zip(predicts, im_paths):
predict = mx.nd.squeeze(mx.nd.argmax(predict[0], 1)).asnumpy()
mask = get_color_pallete(predict, args.dataset)
outname = os.path.splitext(impath)[0] + ".png"
mask.save(os.path.join(outdir, outname))
After Change
im_paths = dsts
predicts = evaluator.parallel_forward(data)
for predict, impath in zip(predicts, im_paths):
predict = mx.nd.squeeze(mx.nd.argmax(predict[0], 1)).asnumpy() + testset.pred_offset
mask = get_color_pallete(predict, args.dataset)
outname = os.path.splitext(impath)[0] + ".png"
mask.save(os.path.join(outdir, outname))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-cv
Commit Name: 5921740d9f69d853fe543c52811b590a398031f5
Time: 2018-06-25
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: scripts/segmentation/test.py
Class Name:
Method Name: test
Project Name: dmlc/gluon-cv
Commit Name: 4999f9795af7a21ca69adf5f72301b79f719498e
Time: 2018-06-05
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: tests/unittests/test_utils_segmentation.py
Class Name:
Method Name: test_segmentation_utils
Project Name: dmlc/gluon-cv
Commit Name: dfac51fcd0fbceb3f394a1d8f1ab7c8652e9cf78
Time: 2018-04-23
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: gluonvision/utils/metrics/voc_segmentation.py
Class Name:
Method Name: batch_intersection_union