lartpang / PySODEvalToolkit

PySODEvalToolkit: A Python-based Evaluation Toolbox for Salient Object Detection and Camouflaged Object Detection

Home Page:https://lartpang.github.io/PySODEvalToolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question about threshold of f-measure

Z1Wu opened this issue · comments

commented

Thank you for sharing this cool toolkit.
I have a question about threshold of the f-measure plotting code.

After the np.flip operatoin, the fg_w_thrs becomes [ >= 255, >= 254, ..... ,>=0].
https://github.com/lartpang/Py-SOD-VOS-EvalToolkit/blob/f9c1fd5ffeef1a58067e31b9e6d28e9eb0754c46/metrics/sod/metrics.py#L66

When saving the curve data into np file for ploting , thess lines flip the fm data again.( so now fm should be [0, 1, ...., 255])
https://github.com/lartpang/Py-SOD-VOS-EvalToolkit/blob/f9c1fd5ffeef1a58067e31b9e6d28e9eb0754c46/eval_sod_all_methods.py#L132-L136

But when plotting image, the x axis(threshold) here starts from 1 to 0. I guess this should be from 0 to 1.
https://github.com/lartpang/Py-SOD-VOS-EvalToolkit/blob/f9c1fd5ffeef1a58067e31b9e6d28e9eb0754c46/eval_sod_all_methods.py#L198

commented

Yes, you are right.
Thanks!
I will fix it.