How to set background image in training ?
sz2three opened this issue · comments
I have two classes ( classA:1, classB:2) in my custom images. Now there are some other images without any bboxes, should I use these images as background images?
And How to do the settings (For example, how to define the class index ? should it be 0 ? )
Thank you.
In coco format, json files have the following dictionaries dict_keys(['images', 'type', 'annotations', 'categories'])
. For background images without any target objects in them, you can define the image properties in images
dictionary and leave the annotations part empty for that image id. You don't need to set a new class id for background images.