Closed MathijsNL closed 2 years ago
This error indicates that some annotation doesnot have the "bg_object_segmentation'" mask annotation. Even sometimes it's empty, we still need such key name in the produced annotation.
I checked the dataset, every annotation has the bg_object_segmentation. Replacing the coco json with my own annotation file and using the train_net.py works without any errors.
I think registering new datasets just doesn't load in the bg_object_segmentation (even though it is 100% there for all annotations), but that might be out of scope for this repo and has to be added in detectron2.
When using a custom coco formatted dataset, after processing with process.sh, this error gets thrown:
Are there any additional steps needed to train this on a custom dataset? I verified that the processing went correct and each instance seems to have the bg_object_segmentation added, although some are empty.
Some examples of the bg_object_segmentation:
This could maybe related to the register_coco_instances I use to register the dataset?