Skip to content
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

[Refactor] Refactor LVIS metric with MMEval. #9843

Open
wants to merge 5 commits into
base: refactor_metrics
Choose a base branch
from

Conversation

RangiLyu
Copy link
Member

@RangiLyu RangiLyu commented Feb 27, 2023

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

03/13 20:05:57 - mmengine - INFO - Evaluating bbox...
03/13 20:13:05 - mmengine - INFO - 
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=all] = 0.225
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=300 catIds=all] = 0.369
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=300 catIds=all] = 0.238
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=     s | maxDets=300 catIds=all] = 0.168
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=     m | maxDets=300 catIds=all] = 0.297
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=     l | maxDets=300 catIds=all] = 0.351
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=  r] = 0.091
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=  c] = 0.211
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=  f] = 0.301
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=all] = 0.309
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=     s | maxDets=300 catIds=all] = 0.218
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=     m | maxDets=300 catIds=all] = 0.395
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=     l | maxDets=300 catIds=all] = 0.487

03/13 20:13:05 - mmengine - INFO - Evaluating segm...
03/13 20:20:55 - mmengine - INFO - 
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=all] = 0.217
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=300 catIds=all] = 0.343
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=300 catIds=all] = 0.230
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=     s | maxDets=300 catIds=all] = 0.152
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=     m | maxDets=300 catIds=all] = 0.294
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=     l | maxDets=300 catIds=all] = 0.351
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=  r] = 0.096
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=  c] = 0.210
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=  f] = 0.278
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=300 catIds=all] = 0.296
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=     s | maxDets=300 catIds=all] = 0.198
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=     m | maxDets=300 catIds=all] = 0.389
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=     l | maxDets=300 catIds=all] = 0.482

03/13 20:20:56 - mmengine - INFO - 
                                           bbox Results (%)                                          
┏━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ bbox_AP ┃ bbox_AP50 ┃ bbox_AP75 ┃ bbox_APs ┃ bbox_APm ┃ bbox_APl ┃ bbox_APr ┃ bbox_APc ┃ bbox_APf ┃
┡━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━┩
│ 22.55   │ 36.95     │ 23.82     │ 16.81    │ 29.71    │ 35.06    │ 9.12     │ 21.11    │ 30.05    │
└─────────┴───────────┴───────────┴──────────┴──────────┴──────────┴──────────┴──────────┴──────────┘

03/13 20:20:56 - mmengine - INFO - 
                                           segm Results (%)                                          
┏━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ segm_AP ┃ segm_AP50 ┃ segm_AP75 ┃ segm_APs ┃ segm_APm ┃ segm_APl ┃ segm_APr ┃ segm_APc ┃ segm_APf ┃
┡━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━┩
│ 21.7    │ 34.34     │ 23.0      │ 15.16    │ 29.42    │ 35.1     │ 9.63     │ 21.02    │ 27.77    │
└─────────┴───────────┴───────────┴──────────┴──────────┴──────────┴──────────┴──────────┴──────────┘

{'lvis/bbox_AP(%)': 22.5483, 'lvis/bbox_AP50(%)': 36.9461, 'lvis/bbox_AP75(%)': 23.8185, 'lvis/bbox_APs(%)': 16.807, 'lvis/bbox_APm(%)': 29.7063, 'lvis/bbox_APl(%)': 35.0595, 'lvis/bbox_APr(%)': 9.1173, 'lvis/bbox_APc(%)': 21.1126, 'lvis/bbox_APf(%)': 30.0537, 'lvis/segm_AP(%)': 21.7036, 'lvis/segm_AP50(%)': 34.3376, 'lvis/segm_AP75(%)': 22.9998, 'lvis/segm_APs(%)': 15.1628, 'lvis/segm_APm(%)': 29.4163, 'lvis/segm_APl(%)': 35.1044, 'lvis/segm_APr(%)': 9.632, 'lvis/segm_APc(%)': 21.0205, 'lvis/segm_APf(%)': 27.7715}


@RangiLyu RangiLyu changed the title [WIP] Refactor LVIS metric with MMEval. [Refactor] Refactor LVIS metric with MMEval. Mar 13, 2023
@BIGWangYuDong
Copy link
Collaborator

Should be merged after open-mmlab/mmeval#100 have been merged

@aooxin
Copy link

aooxin commented Sep 20, 2023

The metrics parameter in the evaluation of the VOC dataset can only be set to mAP. Is it not possible to use bbox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants