CornerNet icon indicating copy to clipboard operation
CornerNet copied to clipboard

training on my own pictures

Open Iric2018 opened this issue 6 years ago • 4 comments

If I want to train the model with my own images,how can I get the json file of annotations,such as instances_minival2014.json,instances_testval2014.json and instances_trainval2014.json?

Iric2018 avatar Oct 10 '18 08:10 Iric2018

There's an alternative to preparing JSON files.

You can change the _load_data function in db/coco.py to read your own dataset. self._image_ids is a list of image names, while self._detections is a dictionary where the keys are the image names and the values are the bounding boxes and category ids.

heilaw avatar Oct 11 '18 15:10 heilaw

how to change the _load_data function in db/coco.py? just need to save your image file names to the _image_ids variable and just set _detections to be an empty list. i can not understand.

maggiequan avatar Nov 28 '18 01:11 maggiequan

e

do you know how to change the function _load_data?i am in the same case as you.thank you!

mrlaiii avatar Apr 07 '19 02:04 mrlaiii

How to display the test result of single picture?

kszqq avatar Aug 20 '19 08:08 kszqq