ImportError: 'make_lvis_metrics'
See original GitHub issue🐛 Describe the bug A clear and concise description of what the bug is. I got this error message:
ImportError: cannot import name 'make_lvis_metrics' from 'avalanche.evaluation.metrics'
while running one of your examples mentioned in this link: https://avalanche.continualai.org/examples/training
🐜 To Reproduce A minimal working example to reproduce the issue. The code should be executable without modifications.
I am running one of those instructions in the terminal that has avalancha as the current environment:
python examples/detection.py
or
python examples/detection_lvis.py
I got same error after running any of them.
🐝 Expected behavior A clear and concise description of what you expected to happen.
I expected that i will get some results of object detection using lvis dataset
🐞 Screenshots If applicable, add screenshots to help explain your problem.
🦋 Additional context Add any other context about the problem here like your python setup.
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top GitHub Comments
@alaa-shubbak This is a different error related to metric imports which we need to fix. If you want to run the code you can remove
make_lvis_metrics
fromfrom avalanche.evaluation.metrics import (...)
and add a new import line as below:from avalanche.evaluation.metrics.detection import make_lvis_metrics
I tested it and it works.@lrzpellegrini
make_lvis_metrics
which is supposed to return the metric class for Lvis is missing indetection_evaluators
. Is the one implemented inavalanche.evaluation.metrics.detection.py
the initializer that should be used inside the code example?Hi @alaa-shubbak !
Did you install avalanche with the detection packages, i.e.
pip install avalanche-lib[detection]
? Have a look at here the link below for more details: https://avalanche.continualai.org/getting-started/how-to-install