A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/segments-ai/panoptic-segment-anything below:

segments-ai/panoptic-segment-anything: Combining Segment Anything (SAM) with Grounded DINO for zero-shot object detection and CLIPSeg for zero-shot segmentation

Zero-shot panoptic segmentation using SAM

This is a proof of concept for zero-shot panoptic segmentation using the Segment Anything Model (SAM).

SAM cannot immediately achieve panoptic segmentation due to two limitations:

To solve these challenges we use the following additional models:

You can try out the pipeline by running the notebook in Colab or by trying out the Gradio demo on Hugging Face Spaces.

The notebook also shows how the predictions from this pipeline can be uploaded to Segments.ai as pre-labels, where you can adjust them to obtain perfect labels for fine-tuning your segmentation model.

Our Frankenstein-ish pipeline looks as follows:

  1. Use Grounding DINO to detect the "thing" categories (categories with instances)
  2. Get instance segmentation masks for the detected boxes using SAM
  3. Use CLIPSeg to obtain rough segmentation masks of the "stuff" categories
  4. Sample points in these rough segmentation masks and feed these to SAM to get fine segmentation masks
  5. Combine the background "stuff" masks with the foreground "thing" masks to obtain a panoptic segmentation label

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4