Closed arniwesth closed 4 years ago
@arniwesth hi, Have you solved your probelm? currently I want train Panoptic segmentation on COCO, Can you kindly tell me how to train? Thank you.
@dragen1860 No, unfortunately I did not have time to look closer into this problem.
@dragen1860 Did you manage to train Panoptic Segmentation? The error you get is probably due to the fact that you use register_coco_intsances
function instead of the register_coco_panoptic_separated
function in the detectron2 datasets module. This unfortunately means that you cannot simply have a single coco-panoptic type of a json file. I hope in the future there will be a better way to do this.
I am trying to generate and load a data set for Panoptic segmentation. The data format follows this example:
https://github.com/cocodataset/panopticapi/blob/master/sample_data/panoptic_examples.json
The "annotations" part of the JSON looks like this:
Loading the data set
results in
i.e. the key "id" is expected in the "annotations"' part of the JSON file.
I took a look here: https://github.com/facebookresearch/detectron2/tree/master/datasets But this seems to be specifically for training on the COCO dataset - not for custom data sets.
Is there any working Panoptic segmentation examples on custom data sets to use as a base?