CornerNet-Lite icon indicating copy to clipboard operation
CornerNet-Lite copied to clipboard

Problems when i evaluate my own data

Open qingzhoudong opened this issue 6 years ago • 2 comments

after i trained my own datasets, i want to evaluate AP, but there are some problems that i can't solve. ''' File "evaluate.py", line 106, in main(args) File "evaluate.py", line 102, in main test(testing_db, system_config, model, args) File "evaluate.py", line 62, in test test_func(system_config, db, nnet, result_dir, debug=debug) File "/home/qzdong/CornerNet-Lite-master/core/test/init.py", line 5, in test_func return globals()[sys_config.sampling_function](db, nnet, result_dir, debug=debug) File "/home/qzdong/CornerNet-Lite-master/core/test/cornernet_saccade.py", line 282, in cornernet_saccade detections = db.convert_to_coco(top_bboxes) File "/home/qzdong/CornerNet-Lite-master/core/dbs/coco.py", line 143, in convert_to_coco category_id = self._cls2coco[cls_ind] KeyError: 6 ''' what should i do to solve this problem?

qingzhoudong avatar Oct 14 '19 12:10 qingzhoudong

I also have this problem,please help me to how solving this issue.

mdswyz avatar Dec 16 '19 01:12 mdswyz

You may try to start your category from 0 in json, just like this {"category1":0, "category2":1, "category3": 2}.

berieo avatar Jan 15 '20 05:01 berieo