ruinmessi commited on
Commit
5b6dfa8
·
1 Parent(s): 78a233c

Fix coco eval bug when yolox is not installed correctly (#312)

Browse files
Files changed (1) hide show
  1. yolox/evaluators/coco_evaluator.py +1 -1
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 cocoeval as COCOeval
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