-
Notifications
You must be signed in to change notification settings - Fork 77
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
How to use eval_tool? #10
Comments
|
Hi I have tried it and I still got this error.
Also how to change the path of Ground truth?, where |
@ftlong6666 |
@fyangneil After I check I realized that the testdata is not in mat file. Here is the step to produce the error.
|
Also I confuse with your code in file |
@to run crack_nms, you do not need the ground truth files, only crack prediction files are needed. |
@ftlong6666 the predmap is from line 8 "load(fullfile(path_to_input, iids(i).name))" |
@fyangneil Thank you for quick reply it helps a lot. I have changed it to
|
@ftlong6666 you do not need to change the line 9, it should work. |
@fyangneil , I used exactly the same code here is the full code.
But I still got this error message.
|
@ftlong6666 what is the version of your matlab |
Matlab R2019b Windows 10 |
@ftlong6666 could you show the predmap? |
@fyangneil Here is the predmap variables. |
@ftlong6666 looks good, it should be fine.Could you set a breakpoint in " J = convConst('convTri',I,r,s);" |
@ftlong6666 have compiled the edges toolbox? |
I do this one to compile.
|
Looks good. I have no idea
…On Thu, Mar 5, 2020 at 12:53 PM ftlong6666 ***@***.***> wrote:
I do this one to compile.
Simply unzip, then add all directories to the Matlab path:
>> addpath(genpath('/edges/toolbox/')); savepath;
If needed, run the compile script for the mex files:
>> toolboxCompile;
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10?email_source=notifications&email_token=ALAUWTTZOUA2TZ2WHSRODPDRF7RJHA5CNFSM4LA43X62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN6IBHI#issuecomment-595361949>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALAUWTXXSV6M3LPOVJ7RW7LRF7RJHANCNFSM4LA43X6Q>
.
|
|
For nms, you need groundtruth
I do not have code to convert png to mat, you can do it using matlab.
My matlab version is 2017b. But I think it has no business with the matlab
version
…On Thu, Mar 5, 2020 at 1:01 PM ftlong6666 ***@***.***> wrote:
1. What is your Matlab version?
2. Do you have a code to convert .png result into .mat?
3. Why we don't need the ground truth?, we should compare the result
against the ground truth right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10?email_source=notifications&email_token=ALAUWTTYMESA6JS4ITTH5GTRF7SJDA5CNFSM4LA43X62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN6I7YQ#issuecomment-595365858>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALAUWTRIAEB722NWWUVJKLLRF7SJDANCNFSM4LA43X6Q>
.
|
@fyangneil You mentioned that to run |
@ftlong6666 for the deimension of mat file, you can check our provided results. When you run crack_eval.m and crack_AIU.m, you need ground truth files. |
@fyangneil If you don't have the code to convert .png to .mat, do you have the .mat of the groundtruth?, as long as you have the result, you should have the .mat of the groundtruth right?, in case you have, could you also upload it? |
Hello @fyangneil its just working, I don't know why. Anyway after I run the
Also in your code I see that you point it to directory |
@ftlong6666 regarding crack_eval, only png image are needed. After nms, you can get png files, which used for evaluation. The ground truth file used for evaluation is also png files. |
@fyangneil yes got it, but the problem is your code still looking for ".mat" files. First I put this line in
Then after I run it, the result is still an error message like this.
Thus the error said that your code |
@fyangneil Are you sure use this code to provide the result?, because I just realize that the path of the result needs .png but the groundtruth should be in .mat. Let me show you.
but in
so here is the result.
From here we can see that you try to read |
@ftlong6666 my code does not use 'edgesEvalImg.m', it uses edgesEvalDir_crack.m, the line 70 is 'im1=fullfile(resDir,[idRes '.mat']); gt1=fullfile(gtDir,[id '.png']);' . So my code use mat file for prediction results and png file for ground truth. |
@fyangneil Yes I also use it but the
|
@ftlong6666 in my code, the line 56 in edgesEvalImg is load(E). |
@fyangneil Hi finally I resolved all the issues. Actually I run your code but because I have tested the edge detection before and my matlab point to my previous experiment, so it point to the original edge detection metric code because the function name is simillar. After I used the tescrop data I got this result.
From here I got the same OIS and ODS in the paper. However in here my AIU is 0.4299 which is lower than the paper which is 0.489. I got your pre-computed result that you shared in Gdrive. BTW is there any mistake that I have done in here?, Also how to the plot of the AIU, Precission, and Recall? |
@ftlong6666 To compute AIU, you do not need nms, just use the provided prediction results. To display the plot of curve, you can use edgesEvalPlot. |
@fyangneil Hi it works, thank you so much for your help. |
@fyangneil Sorry last question. Do you have others method results that you presented in your paper? such as HED,RCF,FCN, and CrackForest? I only found your method results in your drive. Thanks a lot for your help. |
@ftlong6666 regarding the results of other method, i just upload the CrackForest results on google drive. For the other method's results, you may need to run their codes. Since it is a long time ago that i conducted the experiments, the results cannot be found anymore. |
Hello @fyangneil, thank you for your support, now I have 3 questions for the evaluation.
did you resize the image to 500x500 and do inference later up-sampled again to original size?
|
1. input size in prototxt is not the real input size.
real input size should be input image size
2. N/A is because the results from crackforest is binary map.
…On Thu, Apr 23, 2020 at 7:00 PM ftlong6666 ***@***.***> wrote:
Hello @fyangneil <https://github.com/fyangneil>, thank you for your
support, now I have 3 questions for the evaluation.
1. What is the input image size for FPHB network?, since its fully
convolutional it should be not fixed right. However if we use original size
it will be time consuming. In your code at test_fphb_crack.prototxt I
found this line.
name: "fphb"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 500
input_dim: 500
did you resize the image to 500x500 and do inference later up-sampled
again to original size?
1.
I always see N/A for AIU measurement in crackforest dataset, what is
it means?
2.
You also measure the time of FPHB. Related with question 1, if your
input is 500x500 then why different dataset has different running time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALAUWTUKS2EL2N77NV2ZOCDRODCBPANCNFSM4LA43X6Q>
.
|
Hello @fyangneil thank you for your reply. As you mentioned before the result of Crackforest is binary so the AIU is N/A then how can we evaluate the ODS and OIS? since there is no threshold is used. You also produce same OIS and ODS but different for each dataset. How to get this number? |
if I remember correctly, when calculating ODS and OIS, I did not use the threshold, since the result of crackforest is binary. I directly use the binary mask to compute ODS and OIS, thus in each dataset the ODS and OIS of crackforest are same.
…________________________________
From: ftlong6666 <notifications@github.com>
Sent: Saturday, December 12, 2020 6:22 AM
To: fyangneil/pavement-crack-detection <pavement-crack-detection@noreply.github.com>
Cc: Fan Yang <fyang@temple.edu>; Mention <mention@noreply.github.com>
Subject: [External] Re: [fyangneil/pavement-crack-detection] How to use eval_tool? (#10)
Hello @fyangneil<https://github.com/fyangneil> thank you for your reply. As you mentioned before the result of Crackforest is binary so the AIU is N/A then how can we evaluate the ODS and OIS? since there is no threshold is used. You also produce same OIS and ODS but different for each dataset. How to get this number?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALAUWTVGMQD5SXCSAO26TCTSUNHAXANCNFSM4LA43X6Q>.
|
Hello @fyangneil could you explain the step how to do evaluation?,
However I got this error. Suppose that I have the predicted crack in .png file in the input_folder and I want to get the evaluation result only.
The text was updated successfully, but these errors were encountered: