Add mIoU metric
MEMBER
Hmm the doctest failed again - maybe the full result needs to be on one single line
2022-02-24T17:47:01Z
https://github.com/huggingface/datasets/pull/3745#issuecomment-1050104589
https://api.github.com/repos/huggingface/datasets/issues/3745
IC_kwDODunzps4-l1MN
https://api.github.com/repos/huggingface/datasets/issues/comments/1050104589/reactions
2022-02-24T17:47:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1050104589
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
COLLABORATOR
cc @lhoestq for the final review
2022-03-07T18:49:37Z
https://github.com/huggingface/datasets/pull/3745#issuecomment-1061015313
https://api.github.com/repos/huggingface/datasets/issues/3745
IC_kwDODunzps4_Pc8R
https://api.github.com/repos/huggingface/datasets/issues/comments/1061015313/reactions
2022-03-07T18:49:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1061015313
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
Cool ! Feel free to merge if it's all good for you
2022-03-08T09:37:47Z
https://github.com/huggingface/datasets/pull/3745#issuecomment-1061583713
https://api.github.com/repos/huggingface/datasets/issues/3745
IC_kwDODunzps4_Rnth
https://api.github.com/repos/huggingface/datasets/issues/comments/1061583713/reactions
2022-03-08T09:37:47Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1061583713
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
This PR adds the mean Intersection-over-Union metric to the library, useful for tasks like semantic segmentation.

It is entirely based on mmseg's [implementation](https://github.com/open-mmlab/mmsegmentation/blob/master/mmseg/core/evaluation/metrics.py).

I've removed any PyTorch dependency, and rely on Numpy only.