pavement-crack-detection icon indicating copy to clipboard operation
pavement-crack-detection copied to clipboard

Question

Open CNHNLP opened this issue 5 years ago • 6 comments

When I evaluate the result on my dataset, I need to process nms and thinned to one pixel wide on GT and crack detection . I run eval/nms_process.m to process nms,but how to thinned to one pixel wide, to run EvalEdge.m? Can you give some advice Thank you very much

CNHNLP avatar May 28 '19 01:05 CNHNLP

@CNHNLP You can use 'edgesEvalDir' function in Structured Edge Detection Toolbox, set 'thin' to 1 and 'maxDist' to 0.0075.

fyangneil avatar May 28 '19 18:05 fyangneil

@fyangneil Thank you for your answer. I'm confused about the meaning of maxDist.Can you explain the maxDist how to calculate.Or give some papers to explain it?
Thanks a lot.

CNHNLP avatar May 30 '19 04:05 CNHNLP

@CNHNLP i think the following link may help you. https://github.com/mmaire/hsa-bench/blob/master/benchmark/correspond/correspondPixels.m

fyangneil avatar May 30 '19 09:05 fyangneil

@fyangneil I am sorry to disturb you again.I use your train.caffemodel to evaluate your testcrop data,but the result is not good.The ODS is 0.502.OIS is 0.519 and AP is just 0.128.And the AIU score is 0.405. For the ground truth,I use the eval_edge.m to process nms function to the truth label and use double(bwmorph(E1,'thin',inf)) function to transform the label to thin 1 pixel. Then save the thinned ground truth label to mat file.Finally,I run eval_edge.m to evaluate the result. I only change plt.imsave(outputpath + image_name, 1 - scale_lst[i], cmap='gray') sio.savemat(outputpath + name, {'predmap': 1 - scale_lst[i]}) to misc.imsave(outputpath + image_name, scale_lst[i]) sio.savemat(outputpath + name, {'predmap': scale_lst[i]}) in the test.py. Is there any problems on the test process? Look forward to your reply.

CNHNLP avatar Jun 01 '19 13:06 CNHNLP

@CNHNLP The evaluation tool is provided in the upated repo. Please check it out.

fyangneil avatar Jun 03 '19 11:06 fyangneil

@fyangneil I have used your evaltools to get the same result in your paper.Thank you very much!

CNHNLP avatar Jun 03 '19 13:06 CNHNLP