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

[Bug] can not find AveragePrecision, MultiLabelMetric,MultiLabelMetric in mmengine #1854

Open
zengziru opened this issue Dec 25, 2023 · 1 comment

Comments

@zengziru
Copy link

Branch

main branch (mmpretrain version)

Describe the bug

AveragePrecision is not in the mmengine::metric registry. Please check whether the value of AveragePrecision is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'

Environment

{'sys.platform': 'linux',
'Python': '3.8.8 (default, Feb 24 2021, 21:46:12) [GCC 7.3.0]',
'CUDA available': True,
'numpy_random_seed': 2147483648,
'GPU 0': 'Tesla V100-PCIE-32GB',
'CUDA_HOME': None,
'GCC': 'gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0',
'PyTorch': '1.8.0',
'TorchVision': '0.9.0',
'OpenCV': '4.5.3',
'MMEngine': '0.8.5',
'MMCV': '2.0.1',
'MMPreTrain': '1.1.1+e95d9ac'}

Other information

I modify the config like this as tutorial:
val_evaluator = [
dict(type='AveragePrecision'),
dict(type='MultiLabelMetric', average='macro'), # class-wise mean
dict(type='MultiLabelMetric', average='micro'), # overall mean
]

@HaoLiuHust
Copy link

they are in mmpretrain.evaluation

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

No branches or pull requests

2 participants