vision_papers / pages /Grounding_DINO /Grounding DINO.md
lbourdois's picture
Upload 174 files
94e735e verified
We have merged Grounding DINO in 🤗 Transformers
It's an amazing zero-shot object detection model, here's why 🧶 also I have built two applications on top of it.
![image_1](image_1.jpg)
There are two zero-shot object detection models as of now, one is OWL series by Google Brain and the other one is Grounding DINO 🦕 Grounding DINO pays immense attention to detail ⬇️
Also [try yourself](https://t.co/UI0CMxphE7.
![image_2](image_2.jpg)
![image_3](image_3.jpg)
I have also built another [application](https://t.co/4EHpOwEpm0) for GroundingSAM, combining GroundingDINO and Segment Anything by Meta for cutting edge zero-shot image segmentation.
![image_4](image_4.jpg)
Grounding DINO is essentially a model with connected image encoder (Swin transformer), text encoder (BERT) and on top of both, a decoder that outputs bounding boxes 🦖 This is quite similar to OWLv2, which uses a ViT-based detector on CLIP.
![image_5](image_5.jpg)
The authors train Swin-L/T with BERT contrastively (not like CLIP where they match the images to texts by means of similarity) where they try to approximate the region outputs to language phrases at the head outputs 🤩
![image_6](image_6.jpg)
The authors also form the text features on the sub-sentence level. This means it extracts certain noun phrases from training data to remove the influence between words while removing fine-grained information.
![image_7](image_7.jpg)
Thanks to all of this, Grounding DINO has great performance on various REC/object detection benchmarks 🏆📈
![image_8](image_8.jpg)
Thanks to transformers, you can use Grounding DINO very easily! You can also check out [NielsRogge](https://twitter.com/NielsRogge)'s [notebook here](https://t.co/8ADGFdVkta).
![image_9](image_9.jpg)
> [!TIP]
Ressources:
[Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection](https://arxiv.org/abs/2303.05499)
by Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, Jun Zhu, Lei Zhang (2023)
[GitHub](https://github.com/IDEA-Research/GroundingDINO)
[Hugging Face documentation](https://huggingface.co/docs/transformers/model_doc/grounding-dino)
> [!NOTE]
[Original tweet](https://twitter.com/mervenoyann/status/1780558859221733563)