Product Update: Panoptic Segmentation Masks · Bifrost

Product Update: Panoptic Segmentation Masks

Pixel-accurate panoptic segmentation masks replace COCO polygons in Bifrost dataset downloads, now delivered as high-bit-depth TIFF files.

Polygons approximate. Masks don't.

COCO segmentation polygons trace object boundaries as vertex lists, which means fine structure - rigging, railings, antenna masts, anything thin or concave - gets simplified away. We've replaced them with panoptic segmentation masks that map every pixel in the frame to an annotation ID. Your segmentation labels are now exactly as accurate as the render itself.

What's New

Reading the masks

Every pixel in a panoptic mask stores an annotation ID rather than a color, so the file looks black in a standard image viewer. That's expected - the data is all there. Load it as an array and the IDs map straight back to your COCO annotations:

import numpy as np
from PIL import Image

mask = np.array(Image.open("panoptic/frame_0001.tiff"))
annotation_ids = np.unique(mask)  # every annotation present in the frame

The sample notebook included with your download renders the mask in color for inspection and handles the semantic-mask conversion for you.

Update: TIFF masks for larger datasets

We've since upgraded the mask format itself:

No pipeline changes needed beyond reading TIFF where you read PNG - the snippet above works unchanged.

Pixel-accurate labels, no relabeling

Segmentation quality caps out at annotation quality. If polygon approximation has been the ceiling on your model's mask accuracy, this update removes it.