mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

Is there a way to register a custom evaluation metric?

Open ThejanW opened this issue 5 years ago • 4 comments

Is there a way to register a custom evaluation metric by defining a class? If possible, can you provide an example?

ThejanW avatar Sep 02 '21 19:09 ThejanW

Hi, right now our metric is not managed by register.

MengzhangLI avatar Sep 02 '21 19:09 MengzhangLI

Hi @MengzhangLI thank you for the prompt response. How do I come up with a new metric and incorporate it within my train/eval pipeline?

ThejanW avatar Sep 02 '21 19:09 ThejanW

Hi, @ThejanW Please check out this PR: add metric mFscore!

You can add metric you want just like this Fscore, here is change files comparison: https://github.com/open-mmlab/mmsegmentation/commit/e16e0e303bebfd3b8362bc52bac58e27aed8fb52

Hoping it is useful to you. By the way, you can also make a new pull request if you think your metric is important. ;)

Best,

MengzhangLI avatar Sep 03 '21 03:09 MengzhangLI

@MengzhangLI this PR helped me understand how it's done. Thanks for pointing out towards the right direction.

ThejanW avatar Sep 03 '21 21:09 ThejanW