Fix coco eval bug when yolox is not installed correctly (#312)
Browse files
yolox/evaluators/coco_evaluator.py
CHANGED
@@ -206,7 +206,7 @@ class COCOEvaluator:
|
|
206 |
try:
|
207 |
from yolox.layers import COCOeval_opt as COCOeval
|
208 |
except ImportError:
|
209 |
-
from pycocotools import
|
210 |
|
211 |
logger.warning("Use standard COCOeval.")
|
212 |
|
|
|
206 |
try:
|
207 |
from yolox.layers import COCOeval_opt as COCOeval
|
208 |
except ImportError:
|
209 |
+
from pycocotools.cocoeval import COCOeval
|
210 |
|
211 |
logger.warning("Use standard COCOeval.")
|
212 |
|