Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #5

Open
CNHNLP opened this issue May 28, 2019 · 6 comments
Open

Question #5

CNHNLP opened this issue May 28, 2019 · 6 comments

Comments

@CNHNLP
Copy link

CNHNLP commented May 28, 2019

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

@fyangneil
Copy link
Owner

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

@CNHNLP
Copy link
Author

CNHNLP commented May 30, 2019

@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.

@fyangneil
Copy link
Owner

@CNHNLP
Copy link
Author

CNHNLP commented Jun 1, 2019

@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.

@fyangneil
Copy link
Owner

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

@CNHNLP
Copy link
Author

CNHNLP commented Jun 3, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants