Is there any way to convert bounding boxes to polygons, for an instance segmentation model?

A post was split to a new topic: Exporting SAM results in COCO format