Grounded-Segment-Anything README

The project's README from github.com/IDEA-Research/Grounded-Segment-Anything. As one markdown file: README.md.

Grounded-Segment-Anything

YouTube Colab Open in Colab HuggingFace Space Replicate ModelScope Official Demo Huggingface Demo by Community Stable-Diffusion WebUI Jupyter Notebook Demo Static Badge Static Badge Static Badge

We plan to create a very interesting demo by combining Grounding DINO and Segment Anything which aims to detect and segment anything with text inputs! And we will continue to improve it and create more interesting demos based on this foundation. And we have already released an overall technical report about our project on arXiv, please check Grounded SAM: Assembling Open-World Models for Diverse Visual Tasks for more details.

We are very willing to help everyone share and promote new projects based on Segment-Anything, Please check out here for more amazing demos and works in the community: Highlight Extension Projects. You can submit a new issue (with project tag) or a new pull request to add new project's links.

🍄 Why Building this Project?

The core idea behind this project is to combine the strengths of different models in order to build a very powerful pipeline for solving complex problems. And it's worth mentioning that this is a workflow for combining strong expert models, where all parts can be used separately or in combination, and can be replaced with any similar but different models (like replacing Grounding DINO with GLIP or other detectors / replacing Stable-Diffusion with ControlNet or GLIGEN/ Combining with ChatGPT).

🍇 Updates

Table of Contents

Preliminary Works

Here we provide some background knowledge that you may need to know before trying the demos.

Title Intro Description Links
Segment-Anything A strong foundation model aims to segment everything in an image, which needs prompts (as boxes/points/text) to generate masks [Github]
[Page]
[Demo]
Grounding DINO A strong zero-shot detector which is capable of to generate high quality boxes and labels with free-form text. [Github]
[Demo]
OSX A strong and efficient one-stage motion capture method to generate high quality 3D human mesh from monucular image. OSX also releases a large-scale upper-body dataset UBody for a more accurate reconstrution in the upper-body scene. [Github]
[Page]
[Video]
[Data]
Stable-Diffusion A super powerful open-source latent text-to-image diffusion model [Github]
[Page]
RAM++ RAM++ is the next generation of RAM, which can recognize any category with high accuracy. [Github]
RAM RAM is an image tagging model, which can recognize any common category with high accuracy. [Github]
[Demo]
BLIP A wonderful language-vision model for image understanding. [GitHub]
Visual ChatGPT A wonderful tool that connects ChatGPT and a series of Visual Foundation Models to enable sending and receiving images during chatting. [Github]
[Demo]
Tag2Text An efficient and controllable vision-language model which can simultaneously output superior image captioning and image tagging. [Github]
[Demo]
VoxelNeXt A clean, simple, and fully-sparse 3D object detector, which predicts objects directly upon sparse voxel features. [Github]

Highlighted Projects

Here we provide some impressive works you may find interesting:

Title Description Links
Semantic-SAM A universal image segmentation model to enable segment and recognize anything at any desired granularity [Github]
[Demo]
SEEM: Segment Everything Everywhere All at Once A powerful promptable segmentation model supports segmenting with various types of prompts (text, point, scribble, referring image, etc.) and any combination of prompts. [Github]
[Demo]
OpenSeeD A simple framework for open-vocabulary segmentation and detection which supports interactive segmentation with box input to generate mask [Github]
LLaVA Visual instruction tuning with GPT-4 [Github]
[Page]
[Demo]
[Data]
[Model]
GenSAM Relaxing the instance-specific manual prompt requirement in SAM through training-free test-time adaptation [Github]
[Page]

We also list some awesome segment-anything extension projects here you may find interesting:

Grounded-Segment-Anything (IDEA-Research/Grounded-Segment-Anything)

Searching Database…

这是做什么的?Grounded SAM 是一个研究演示项目,把 Grounding DINO 和 Segment Anything 结合起来,只需输入一段普通文字,就能检测并分割图片中的任意物体;项目还扩展集成了 Stable Diffusion、RAM、Whisper 等模型。
它是一个可以 import 的库,还是一套可以运行的演示?它是一组可以直接运行的研究演示,而不是一个可安装的包:包括一步步操作的 notebook 演示、一个 Grounded-SAM playground,以及多个 Gradio 应用,并支持用 Docker 安装。
我该怎么把它跑起来?克隆仓库,然后按照 README 中 Installation 部分的说明操作:可以用 Docker 安装,也可以自己搭建本地 Python 环境,然后运行你想试的 notebook 演示或 Gradio 应用。
它在底层实际运行的是哪些模型?是多个大型开放世界模型的组合:Grounding DINO 负责检测,Segment Anything 负责生成掩码,另外还可以选装 Stable Diffusion 做图像修补(inpainting)、用 RAM 或 BLIP 自动打标签,以及用 Whisper 处理语音输入。
分割是完全自动的,还是必须由我来给提示?始终需要你提供提示:SAM 本身需要方框、点或文字这类提示才能生成掩码——在这个流程中,由 Grounding DINO 根据你输入的自由文本自动生成这些提示。
Grounding DINO 是什么?它是 IDEA-Research 推出的零样本开放世界检测器:你输入一段自由文本,它就会为文本中提到的物体返回高质量的边界框和标签,不需要针对你的类别做训练。
我能替换流程里的模型吗?可以。作者把它设计成一个由专家模型组成的工作流,每个环节都可以单独运行、组合运行,也可以被替换——比如用 GLIP 替代 Grounding DINO,或者用 ControlNet 和 GLIGEN 替代 Stable Diffusion。
不安装任何东西能不能先试试?可以。Replicate 上有一个 RAM-Grounded-SAM 在线演示,Grounding DINO 和 Grounded SAM 也都支持在 Hugging Face 上使用,并配有官方文档。
Grounded SAM 2 是什么?它是更新的版本,把 Grounding DINO 和 SAM 2 结合在一起,在原有的文本提示检测加分割流程之上,新增了开放世界场景下对任意物体的跟踪能力。
Size
155.8 MB
Stars
17.8K
Updated
CommitSep 05
Age
3y
Commits · 90 Days