MaskDINO icon indicating copy to clipboard operation
MaskDINO copied to clipboard

How to use Bitmask in coco instance segmentation?

Open liyingyanUCAS opened this issue 2 years ago • 1 comments

Thank you for your excellent work. I noticed that in the code located at https://github.com/IDEA-Research/MaskDINO/blob/95cf05ccfd1d0496bc92980f29a18536c92b450f/maskdino/data/dataset_mappers/coco_instance_new_baseline_dataset_mapper.py#L169, there is a note that says "NOTE: does not support BitMask due to augmentation." Could you provide more information about why BitMask is not supported and perhaps offer some suggestions on how to add support for it? Your assistance would be greatly appreciated.

liyingyanUCAS avatar Apr 13 '23 07:04 liyingyanUCAS

You can use instances.gt_boxes = instances.gt_masks.get_bounding_boxes() instead.

FengLi-ust avatar Apr 17 '23 12:04 FengLi-ust