Skip to content

Commit

Permalink
fix --verbose error on coco infer
Browse files Browse the repository at this point in the history
  • Loading branch information
shensheng272 authored Sep 20, 2022
1 parent 2618785 commit 0350f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolov6/core/evaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def eval_model(self, pred_results, model, dataloader, task):
if ann_i["ignore"]:
continue
val_dataset_anns_count += 1
nc_i = self.coco80_to_coco91_class().index(ann_i['category_id'])
nc_i = self.coco80_to_coco91_class().index(ann_i['category_id']) if self.is_coco else ann_i['category_id']
label_count_dicts[nc_i]["images"].add(ann_i["image_id"])
label_count_dicts[nc_i]["anns"] += 1

Expand Down

0 comments on commit 0350f5f

Please sign in to comment.