Duankaiwen / CenterNet

Codes for our paper "CenterNet: Keypoint Triplets for Object Detection" .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyError: 2 help!!!!!!

vz-ww opened this issue · comments

commented

使用自己的数据集test时 报了这个错 求解答
Traceback (most recent call last):
File "test.py", line 99, in
test(testing_db, args.split, args.testiter, args.debug, args.suffix)
File "test.py", line 61, in test
testing(db, nnet, result_dir, debug=debug)
File "/home/ww/centernet-t/CenterNet-master/test/coco.py", line 321, in testing
return globals()[system_configs.sampling_function](db, nnet, result_dir, debug=debug)
File "/home/ww/centernet-t/CenterNet-master/test/coco.py", line 290, in kp_detection
cat_name = db.class_name(j)
File "/home/ww/centernet-t/CenterNet-master/db/coco.py", line 98, in class_name
cat = self._coco.loadCats([cat_id])[0]
File "data/coco/PythonAPI/pycocotools/coco.py", line 218, in loadCats
return [self.cats[id] for id in ids]
File "data/coco/PythonAPI/pycocotools/coco.py", line 218, in
return [self.cats[id] for id in ids]