You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, it is reusing the val_evaluator and test_evaluator in old config. In that case, it loads ann file from coco dataset instead of my new dataset. Here is my solution, hope it would help.
# in the bottom of config file, add these linesval_evaluator=dict(
type="mmdet.CocoMetric",
proposal_nums=(100, 1, 10),
ann_file="Path/to/your/new_val.json",
metric="bbox",
)
test_evaluator=val_evaluator
Prerequisite
🐞 Describe the bug
Why does running the command report this error, but evaluating it in training is fine
‘python tools/test.py work_dir/ppyoloe.py work_dirs/ppyoloe/best_coco_bbox_mAP_epoch_230.pth’
assert set(annsImgIds) == (set(annsImgIds) & set(self.getImgIds())),
AssertionError: Results do not correspond to current coco set
Environment
pytorch1.8.1
Additional information
None
The text was updated successfully, but these errors were encountered: