Open similalwani opened 7 months ago
Hi, For the given issues check the following..
If segments_info is None, all pixel values in pred must be ≥ -1. Pixels with value -1 are assigned void labels. Otherwise, the category id of each pixel is obtained by category_id = pixel // metadata.label_divisor.
and when merging from file add cfg.set_new_allowed(True)
Thank you...
Instructions To Reproduce the Issue:
Modified the colab notebook tutorial from detectron2 in the following way to create panoptic labels using panoptic deeplab model under the directory detectron2/projects for a custom dataset. When I used the Panoptic FPN model from the model zoo, it gives me correct labels but when I use the panoptic deeplab model (link in the code below), there are 2 issues:
Changes I made to reproduce issue:
Environment:
Pasting the output of the following command:
Please help solve this!