Linwei-Chen / Seg-Aliasing

ICLR2024 When Sementic Segmentation Meets Frequency Aliasing
34 stars 3 forks source link

Evaluation code for the Metric "FErr MErr DErr" #4

Closed weiguangzhao closed 6 months ago

weiguangzhao commented 7 months ago

Hi, thanks for the great work. I didn't find the evaluation code for the Metric "FErr MErr DErr". Since these three metrics are the key metrics to eval the three hard catergories in your paper, could you please provide the implement code?

Linwei-Chen commented 7 months ago

Thanks for your interest. You can find the metrics.py file at this link. To obtain the results, you can use the test.py file.

weiguangzhao commented 6 months ago

Hi Linwei, I didn't find the "FErr MErr DErr" in the metrics.py file. Beside, I have run the test.py and I still can't get the results of Metric "FErr MErr DErr". Could you help check out the code and release the part of Metric "FErr MErr DErr"? Thank you.

Linwei-Chen commented 6 months ago

You can get FErr, MErr, DErr by: FErr = FP_rate MErr = FN_rate DErr = mdisplacement_rate

Linwei-Chen commented 6 months ago

Notice that PASCAL VOC marks the boundary as "ignore" (255), which needs to be handled carefully.

weiguangzhao commented 6 months ago

Got it! Thank you.