Day 80 – COCO Panoptic Segmentation Detectron2 Computer Vision by Facebook AI Research (FAIR)

We have seen what Detectron2, Algorithms, Features, and code on Mask R-CNN is in the previous post.

Today, we will see in this blog about COCO Panoptic Segmentation in Detectron2.

What is Panoptic Segmentation?

Panoptic segmentation unifies the typically distinct tasks of semantic segmentation (assign a class label to each pixel) and instance segmentation (detect and segment each object instance).

Source: Panoptic Segmentation Research Paper

It picks an image/video outline only persons, objects, etc., and segments separately.

Panoptic Segmentation

Image Source: Panoptic segmentation

The above image gives you a clear view of Panoptic Segmentation.

a) Original Image

b) Semantic Segmentation: per-pixel class labels (Labeling each class to same color e-g car in blue, persons in red, etc.)

c) Instance Segmentation: per-object mask and class label (Labeling each object to different colors but here identifies cars and persons)

d) Panoptic Segmentation: per-pixel class+instance labels (Combines Semantic and Instance)

Let’s copy existing code from Detectron2 and test the Panoptic FPN.

I am using Google Colab and you check the online code here.

Before you start the blow code on Google Colab, we need to set runtime type as GPU under Runtime -> Change runtime type -> Hardware accelerator -> GPU.
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
woman-serving-download
Copy to Clipboard
Portrait Of Mature Woman Serving
Copy to Clipboard
Women Serving - Panoptic Segmentation
Output:

Detectron2 Panoptic FPN segments per-pixel class plus instance labels on bowls, dining table, umbrellas, persons, spoons, cakes, etc.

What is your thought on this Detectron2 Panoptic FPN?

Would you please comment below and where we can use in future technologies?

Links:

Google Colab Panoptic Segmentation Model

Detectron2 – Facebook AI

Detectron2 Github Repository

By |2021-07-08T22:30:17+00:00July 7th, 2021|Artificial Intelligence, Machine Learning|0 Comments

About the Author:

Leave A Comment