To use Grounding DINO for AI object detection, clone the official IDEA-Research repository, set CUDA_HOME if you have a CUDA environment, run pip install -e ., download the official groundingdino_swint_ogc.pth checkpoint, then run the demo with a text prompt such as "chair . person . dog .". The software licence fee is $0 under Apache 2.0. Start with the Swin-T checkpoint, one real photo from your own work, a box threshold of 0.35, and a text threshold of 0.25, then inspect every box before you trust a batch.
Quick Answer
To use Grounding DINO for AI object detection, clone the official IDEA-Research repository, set CUDA_HOME if you have a CUDA environment, run pip install -e ., download the official groundingdino_swint_ogc.pth checkpoint, then run the demo with a text prompt such as "chair . person . dog .". The software licence fee is $0 under Apache 2.0. Start with the Swin-T checkpoint, one real photo from your own work, a box threshold of 0.35, and a text threshold of 0.25, then inspect every box before you trust a batch.
In this article
- How we checked this guide
- Read this first: what Grounding DINO is, licence, and project status
- What Grounding DINO replaces, and what it does not
- How text prompts, boxes, and thresholds fit together
- Routes to use Grounding DINO for AI object detection
- Requirements before you install
- Step 1: install Grounding DINO for AI object detection
- Step 2: download a checkpoint and detect your first object
- Step 3: write prompts that find the right object
- Step 4: turn boxes into business output safely
- First-run security steps you must not skip
- Backup and update routine
- Common errors and fixes
- Tips and tricks that save money
- The real cost maths
- When not to use Grounding DINO for AI object detection
- Pros and cons
- Our verdict
- FAQ
- Strategic Pivot
- Sources
How we checked this guide
We checked the official Grounding DINO GitHub repository on December 5, 2026. That covers the Apache 2.0 licence field, the CUDA_HOME warning, the clone and editable-install route, the requirements list, the official checkpoint download, the command-line demo, the Python inference example, the Gradio web UI file, and the checkpoint table with its COCO figures.
For the paid comparison, we checked the official Roboflow pricing page on December 5, 2026. Every Roboflow figure below comes from that official page, including its Free Tier and Core plan, not from a roundup or review site.
Read this first: what Grounding DINO is, licence, and project status

Grounding DINO is an open-set object detector. In plain words, you type the thing you want found, and the model draws boxes around matching objects in the image. A classic detector only finds classes it was trained on, such as the fixed list in a dataset. Grounding DINO takes an image and a text prompt together, so the class list can change at run time.
The official repository describes it as the PyTorch implementation and pretrained models for the paper “Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection”. The repository highlight is simple: open-set detection means you detect objects with language. For a small business, that is the difference between “train a model for red mugs, then retrain for blue mugs” and “type red mug and check the box”.
The repository licence is Apache License 2.0. In plain words, the software licence fee is $0, and a business may use, copy, modify, and distribute the software, including in commercial products, subject to the Apache conditions: keep the licence and copyright notices, state significant changes you make, and respect the patent and trademark terms.
Project status needs one honest paragraph. The repository is public and not archived, and it still provides the inference code, demo scripts, checkpoint links, and a Hugging Face demo link. Its news section also points readers to newer work from the same team, including Grounding DINO 1.5 and Grounded SAM 2. Those newer systems are not the same download as this repository. This guide installs the open repository checkpoint that the official README documents, because that is the route a reader can reproduce from the public code.
What Grounding DINO replaces, and what it does not
Grounding DINO replaces the first labelling pass. Anyone who has drawn boxes around hundreds of products, tools, defects, or shelf items knows the cost. A text-prompted detector turns that drawing job into a prompt and a review queue: type the object, inspect the boxes, fix the misses, and only then save the result.
It also replaces the “train a detector before you can test an idea” step for many small jobs. A shop that wants to count chairs in listing photos, find a logo on packaging, or locate a tool in workshop images does not need a labelled dataset before the first test. The zero-shot design is built for objects named in words, not only for classes in a fixed training list.
Grounding DINO pairs naturally with segmentation. A box says where the object is. A mask says exactly which pixels belong to it. Our Segment Anything Model guide covers that second step, where a box or point becomes a clean cutout. The official Grounding DINO repository itself points to Grounded-Segment-Anything, which marries Grounding DINO with Segment Anything for that reason.
It does not replace judgement about what counts as a correct box. The model returns boxes with similarity scores, not a guarantee. It can box the chair, the table edge, and the shadow if your prompt is vague. It can miss a small, occluded, or unusual object entirely. Your prompt, your thresholds, and your inspection supply the business meaning.
It does not replace a trained production detector when the job is narrow and permanent. If you must detect the same three defects on the same production line for years, a detector trained and evaluated on your own images will usually be easier to measure and defend. Grounding DINO is strongest when the object list changes, the dataset does not exist yet, or you need a first pass before training.
How text prompts, boxes, and thresholds fit together
Think of Grounding DINO as a matching exercise. The image side reads the picture. The text side reads your prompt. The model scores how well each candidate region matches each part of the text, then keeps the boxes whose best similarity clears your box threshold.
The official explanation is worth copying into your notebook. Grounding DINO accepts an image and text pair as inputs. It outputs 900 object boxes by default. Each box has similarity scores across all input words. Boxes whose highest similarities are higher than a box_threshold are chosen by default. Words whose similarities are higher than a text_threshold are extracted as predicted labels.
That gives you two different dials, and confusing them wastes an afternoon. The box threshold decides whether a region is kept at all. The text threshold decides which words become the label attached to a kept box. Raise the box threshold and you get fewer, stricter boxes. Lower it and you get more boxes, including more junk. Adjust the text threshold when the box is right but the label is wrong or missing.
The repository suggests separating different category names with a full stop. That is why the official Python example uses "chair . person . dog ." rather than a flowing sentence. Short category names separated by full stops are easier for the model to match than a paragraph of description.
Two checkpoints are listed in the official table. GroundingDINO-T uses a Swin-T backbone and is listed at 48.4 box AP on COCO zero-shot and 57.2 fine-tune. GroundingDINO-B uses a Swin-B backbone and is listed at 56.7 box AP on COCO. The repository highlight also reports COCO zero-shot 52.5 AP and COCO fine-tune 63.0 AP for the model family. Treat those as research benchmarks on COCO, not as a promise about your product photos. Your own test images decide.
Routes to use Grounding DINO for AI object detection
| Route | Best for | Skip if | What you use |
|---|---|---|---|
| Clone and editable install from the official repository | Most technical operators who want the documented demo and Python inference on their own machine | You have never used a terminal or Python environment | Clone the repository, set CUDA_HOME when needed, then pip install -e . and the official checkpoint |
| Command-line demo on one image | A first proof that the install, checkpoint, and prompt work | You need a folder pipeline today | demo/inference_on_a_image.py with config, checkpoint, image, output folder, and text prompt |
| Python inference in your own script | Operators building a review queue, a labelling helper, or an internal tool | You only need one annotated image | load_model, load_image, predict, and annotate from the official example |
| Gradio web UI demo | A local visual check by a non-programmer on your team | The machine is shared or exposed to a network you do not control | demo/gradio_app.py on a machine you control |
| Hosted vision platform | Teams that want training, labelling, deployment, and support in one subscription | You only need text-prompted boxes and can run Python | A paid platform such as Roboflow, priced in the cost maths below |
The clone route is the right default for most small businesses that can run the documented commands. It is the route the project documents first, it keeps private product and client images on your own machine, and it gives you every threshold the model exposes.
Requirements before you install
The repository requirements list names torch, torchvision, transformers, addict, yapf, timm, numpy, opencv-python, supervision>=0.22.0, and pycocotools. The editable install pulls the project dependencies in the current directory, so a clean environment matters more than cleverness.
CUDA needs attention before the install, not after a failure. The README warns that if you have a CUDA environment, the environment variable CUDA_HOME must be set, and that the program compiles under CPU-only mode if no CUDA is available. It also warns that skipping the installation steps can produce NameError: name '_C' is not defined, and the fix is to reclone and repeat the steps properly.
CPU-only mode exists. The repository news notes CPU-only support, and the demo accepts a --cpu-only flag. That makes a laptop test possible. It does not make a laptop the right machine for folders of images. Test on CPU if you must, then move batch work to a GPU machine you already own or rent deliberately.
Step 1: install Grounding DINO for AI object detection
Create a clean environment first. Make a dedicated Python environment for Grounding DINO and activate it, so its PyTorch and Transformers versions stay pinned to a combination you have tested. A shared environment full of unrelated packages is how a working demo becomes a broken one.
Check CUDA before you install. Run:
echo $CUDA_HOMEIf it prints nothing and you have a CUDA toolkit, set the variable for the current shell. The README example uses a placeholder path, and the real path is where your CUDA toolkit is installed:
export CUDA_HOME=/path/to/cuda-11.3The README also shows how to find the toolkit with which nvcc. If that prints /usr/local/cuda/bin/nvcc, then the matching export is:
export CUDA_HOME=/usr/local/cudaNotice the warning that the CUDA version should align with your CUDA runtime, because several CUDA versions can exist on one machine. If you want the setting to persist, the README shows storing the export in ~/.bashrc, sourcing it, and checking echo $CUDA_HOME again.
Clone the official repository:
git clone https://github.com/IDEA-Research/GroundingDINO.git
cd GroundingDINO/Install the required dependencies in the current directory:
pip install -e .Use that official route only. Do not grab a “Grounding DINO free download” bundle from a random download portal, and do not run install scripts from a fork you have not read. The address above is the one the project’s own documentation gives.
If the install finishes and the demo later fails with NameError: name '_C' is not defined, do not patch around it. The README says to reinstall by recloning the repository and doing all installation steps again, with CUDA_HOME set correctly before the install.
Step 2: download a checkpoint and detect your first object

Download the pretrained weights using the official block:
mkdir weights
cd weights
wget -q https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth
cd ..That file is the Swin-T checkpoint used by the documented demo config. Keep the config and checkpoint matched: groundingdino/config/GroundingDINO_SwinT_OGC.py goes with weights/groundingdino_swint_ogc.pth.
Check your GPU ID if you are using a GPU:
nvidia-smiRun the command-line demo on one image. Replace the GPU ID, image path, output folder, and text prompt with your own values:
CUDA_VISIBLE_DEVICES={GPU ID} python demo/inference_on_a_image.py \
-c groundingdino/config/GroundingDINO_SwinT_OGC.py \
-p weights/groundingdino_swint_ogc.pth \
-i image_you_want_to_detect.jpg \
-o "dir you want to save the output" \
-t "chair"Add --cpu-only when you are deliberately testing without a GPU. Choose a first image that represents your real work but is not your hardest case: a clear product photo, a tidy shelf, or a workshop image where the object is plainly visible. You are testing the install first, not the model’s limits.
Open the annotated output and judge it like a customer would. Is the box tight around the object? Does it include a second object you did not ask for? Did it miss the object entirely? If the box is right, the install works. If it is wrong, change the prompt and thresholds before you change the tool.
The Python route gives you the same result inside your own script. The official example loads the model, sets a text prompt, and uses a box threshold of 0.35 and a text threshold of 0.25:
from groundingdino.util.inference import load_model, load_image, predict, annotate
import cv2
model = load_model("groundingdino/config/GroundingDINO_SwinT_OGC.py", "weights/groundingdino_swint_ogc.pth")
IMAGE_PATH = "weights/dog-3.jpeg"
TEXT_PROMPT = "chair . person . dog ."
BOX_TRESHOLD = 0.35
TEXT_TRESHOLD = 0.25
image_source, image = load_image(IMAGE_PATH)
boxes, logits, phrases = predict(
model=model,
image=image,
caption=TEXT_PROMPT,
box_threshold=BOX_TRESHOLD,
text_threshold=TEXT_TRESHOLD
)
annotated_frame = annotate(image_source=image_source, boxes=boxes, logits=logits, phrases=phrases)
cv2.imwrite("annotated_image.jpg", annotated_frame)Keep the variable spelling from the official example when you copy it, then rename carefully in your own code. A copied example that runs beats a tidied example that does not.
Step 3: write prompts that find the right object

Start with category names, separated by full stops. "red mug . blue mug . cardboard box ." gives the model three clear targets. A sentence such as “find all the nice products on the table” gives it adjectives and a scene, not categories.
Name the object the way a person would point at it. “Chair” is a category. “Wooden chair with a curved back” is a phrase that may help when several chair types appear, but it also adds words that can match the wrong region. Test the simple name first, then add the distinguishing words only when the simple name boxes the wrong thing.
Use token spans when a phrase must stay together. The official demo shows a sentence prompt with token spans marking “a cat” and “a dog” by character positions. That route suits referring expressions, where the phrase is the point. For ordinary product categories, full-stop separation is simpler and easier to audit.
Tune one threshold at a time. Keep the text threshold at 0.25 while you move the box threshold, and record what changes. If good objects are missing, lower the box threshold slightly and inspect the new boxes. If junk boxes appear, raise it. Change both dials together and you will not know which change helped.
Build a small test set before you batch. Pick ten images that cover your real range: the clean shot, the cluttered shot, the small object, the partly hidden object, and the image where the object is absent. Run the same prompt on all ten. A prompt that works on one hero image and fails on the other nine is not a workflow yet.
Step 4: turn boxes into business output safely
A box becomes business output in three common forms. An annotated image shows a person where the model thinks the object is. A structured record stores the box coordinates, phrase, and score for a dataset or a downstream tool. A cropped region hands the boxed area to another step, such as segmentation, classification, or a human reviewer.
Batch discipline prevents expensive mistakes. Copy a small set of images into a test folder first. Run your prompt recipe. Inspect several outputs, including the worst source image, not only the best one. Only then point the workflow at the full folder.
Keep a review queue for low-confidence work. Boxes near your threshold, images with no detections, and images with surprising extra boxes deserve human eyes. A detector that quietly returns nothing for a shelf photo is more dangerous than one that returns a messy box you can reject.
For product cutouts, hand the box to a segmentation step rather than cropping a rectangle and calling it done. A rectangle includes background. Our IOPaint install guide covers the editing side of that workflow, where a precise mask decides what changes and what stays untouched.
First-run security steps you must not skip
Grounding DINO is a local research tool, not a hosted account with a login page. Your first-run security job is therefore about the machine, the files, and the network surface you create.
Run the demo on a machine you control, with images you have the right to process. Keep client and customer images in folders with ordinary operating-system permissions, not in a shared download directory. A detector that reads private images should not run from an account everyone uses.
Treat the Gradio web UI as a local demo, not a public service. The repository provides demo/gradio_app.py as demo code. Do not expose a demo interface to the open internet because it was convenient for an afternoon. If a team member needs a visual check, run it on a controlled machine or internal network and close it when the check ends.
Download checkpoints only from the official links. The README download block points to the project’s GitHub release. A checkpoint is a large binary file your code loads, so its source matters as much as the code source.
Backup and update routine
Back up the working combination, not only the code. Your backup set is the cloned repository state, the checkpoint file, the config you used, your prompt recipes, your threshold notes, and a small test set with expected outputs. That set lets you rebuild the same behaviour on a new machine.
Record versions when it works. Note the repository commit, the checkpoint filename, the Python environment, and the CUDA setting that produced a good run. The README warning about reinstalling after a _C error is easier to follow when you know which combination worked before.
Update deliberately. Pull a newer repository state into a separate folder or environment first, run your ten-image test set, and compare boxes before you replace the working setup. A research repository can change behaviour between commits, and your prompt recipes were tuned against the behaviour you tested.
Common errors and fixes
NameError: name '_C' is not defined means the custom extension did not build or load as expected. The README is blunt: reclone the repository and repeat the installation steps, making sure CUDA_HOME is set before the install when you have a CUDA environment. Do not keep patching a half-built install.
An empty echo $CUDA_HOME on a GPU machine means the variable is not set in that shell. Find the toolkit with which nvcc, export the matching CUDA_HOME, and check again. Remember that a new terminal may need the export again unless you stored it in ~/.bashrc.
No boxes at all usually means the prompt, threshold, or image needs work before the tool does. Try a simple category name, lower the box threshold slightly, and test on a clear image where the object is plainly visible. If a clear image still returns nothing, recheck the checkpoint path and config pairing.
Too many boxes means the box threshold is too low for your images or the prompt names something broad. Raise the box threshold in small steps and inspect after each change. A prompt such as “object” will match almost anything, because you asked for almost anything.
The right box with the wrong label points at the text threshold or the prompt wording. Separate categories with full stops, remove adjectives that match other regions, and adjust the text threshold while leaving the box threshold alone.
Slow CPU runs are expected, not a defect. CPU-only mode proves the workflow. Move folder-scale work to a GPU machine, or accept that a laptop test stays a test.
Tips and tricks that save money
Prove the prompt on ten images before you rent anything. A free local test that fails on your own photos saves a paid platform month spent learning the same lesson.
Keep a prompt library. When a prompt works for a product line, save the exact text, thresholds, checkpoint, and a sample output together. Reusing a proven recipe is cheaper than rediscovering it every season.
Use Grounding DINO as the finder and a trained model as the finisher. Text-prompted boxes can draft a dataset quickly. A human review pass then turns those drafts into training data for a narrow detector when the job becomes permanent.
Our Real-ESRGAN install guide and GFPGAN install guide cover the neighbouring image jobs, upscaling and face restoration, that often sit beside detection in a product-photo workflow. Keep each tool on the job it does best.
The real cost maths

Grounding DINO itself costs $0 in software licence fees under Apache 2.0. That sentence is true and incomplete. The real cost is the machine that runs it, the time you spend tuning prompts, and the review time that keeps bad boxes out of your business output.
The paid comparison is Roboflow. On the official pricing page checked on December 5, 2026, the Free Tier is $0 with 10 credits included a month, described as enough to train about 30 models or run 80,000 inferences. Core is $39 per month, billed monthly, described as enough to train about 60 models or run 160,000 inferences. Additional prepaid credits start at $4 and expire after one year. Additional on-demand credits cost $6 and require a linked credit card. Enterprise is custom pricing.
Now the scenario. Imagine a small shop that photographs 2,000 product and shelf images a month and wants each image checked for a named product, a price tag, and a cardboard box. The lean route is Grounding DINO on a GPU machine the shop already owns. The licence line is $0 a year. The break-even line against Roboflow Core is $39 a month, which is $468 a year, for your time, electricity, and upkeep combined. If prompt tuning and review cost you less than $39 a month in time you would otherwise sell, the local route wins on cash. If a staff member spends two afternoons a month rescuing bad boxes, the platform may be cheaper than it looks.
The full-stack route changes the answer. Roboflow is not only a detector. Its plans include model inference, model training, deployment options, workflows, and labelling features. If your real job includes training your own model, managing datasets, deploying to devices, and getting support, the $39 a month buys structure that Grounding DINO does not provide. Comparing a $0 detector licence with a $39 platform month is fair only when detection is the whole job.
Hardware is the cost driver on the local side. Grounding DINO on a machine you already own has a $0 licence line and a small electricity line. Grounding DINO that forces a GPU purchase has a capital line that belongs in the maths. The honest comparison is $468 a year for Core billed monthly against the yearly share of any hardware you bought for detection, plus your review time. Run that division before you call either route free.
When not to use Grounding DINO for AI object detection
Do not use Grounding DINO when nobody on the team can run a Python environment. The documented route is a clone, an editable install, a checkpoint download, and a demo command. If that sentence already sounds like a support ticket, a hosted platform is the honest choice.
Do not use it as an unattended production counter without evaluation. A research detector with text prompts is excellent for first passes and changing object lists. A safety, billing, or compliance count needs measured accuracy on your own images, a review process, and a record of failures. Boxes alone do not provide that record.
Do not use it when the object list is fixed forever and accuracy must be defended. Train or buy a detector for that narrow job, evaluate it on held-out images, and keep Grounding DINO for drafting data and testing new categories.
Do not expose the demo web UI to the public internet as a customer service. Demo code is for demonstration. A public service needs authentication, rate limits, logging, and someone responsible when it breaks.
Pros and cons
Pros
- $0 Apache 2.0 software licence fee with commercial use permitted
- Open-set detection from typed category names, without training per class
- Box and text thresholds you can tune separately
- Official command-line demo and Python inference example
- CPU-only mode for a first laptop test
- Local workflow keeps private photos on your machine
- Natural pairing with segmentation through Grounded-Segment-Anything
- Two listed checkpoints, Swin-T and Swin-B, for different needs
Cons
- Python source install with a CUDA setup step that must be right
- No graphical product interface in the core repository
- Research benchmarks on COCO do not guarantee your product photos
- Prompts and thresholds need tuning and inspection per job
- CPU batches stay slow
- No vendor support desk
- Newer team models exist outside this open repository route
- Boxes are not masks, counts, or compliance records by themselves
Our verdict
Use Grounding DINO for AI object detection when your real job is finding named objects in changing images, on hardware you already own, without training a detector for every new category. Clone the official repository, set CUDA_HOME correctly, install with pip install -e ., download groundingdino_swint_ogc.pth, and run one real photo with a simple full-stop prompt before any batch.
The maths favors Grounding DINO on hardware you already own: $0 in licence fees against $39 a month, $468 a year, for Roboflow Core billed monthly. The break-even line is $39 a month for your time, electricity, and upkeep. Choose the Swin-T checkpoint first because the documented demo uses it. Compare the Swin-B checkpoint on the same test images when box quality matters more than setup simplicity.
Choose Roboflow when you need its training, labelling, deployment, or support structure. Choose a trained narrow detector when the object list is fixed and the count must be defended. Choose Grounding DINO when the words change faster than a training dataset can.
Respect the limits either way: Grounding DINO finds what your words match; it does not know what your business means. Prompt carefully, tune one threshold at a time, inspect the boxes, and let the model earn each batch.
FAQ
Is Grounding DINO free for a business?
Yes. The Grounding DINO software licence fee is $0 under Apache License 2.0, which permits commercial use, modification, and distribution subject to its notice conditions. Keep the licence and copyright notices with any redistribution. Check your image rights separately, because the software licence does not grant rights to the photos you process.
What is the easiest way to use Grounding DINO for AI object detection?
Clone the official repository, set CUDA_HOME if you have a CUDA environment, run pip install -e ., download groundingdino_swint_ogc.pth into a weights folder, then run demo/inference_on_a_image.py with the Swin-T config, your image, an output folder, and a text prompt such as "chair". Inspect the annotated output before batching.
Which Grounding DINO checkpoint should I use first?
Start with the Swin-T checkpoint, file groundingdino_swint_ogc.pth, with config GroundingDINO_SwinT_OGC.py, because the documented demo uses that pair. The official table lists GroundingDINO-T at 48.4 box AP on COCO zero-shot and GroundingDINO-B, the Swin-B model, at 56.7. Compare them on your own test images rather than trusting a benchmark alone.
How do I write a Grounding DINO text prompt?
Separate different category names with full stops, as in "chair . person . dog .". Start with simple category names, then add distinguishing words only when the simple name boxes the wrong object. Use token spans only when a specific phrase inside a sentence must stay together.
Why does Grounding DINO return no boxes for my image?
Check the checkpoint and config pairing first, then simplify the prompt to one category name and lower the box threshold slightly from the official example value of 0.35. Test on a clear image where the object is plainly visible. If a clear image still returns nothing, reinstall cleanly with CUDA_HOME set before the install.
Strategic Pivot
Before you rent a vision platform for a folder of product photos, run your own numbers. Our free AI Cost Calculator turns a subscription price and your monthly image volume into a break-even line you can defend. Two minutes there can show whether $39 a month is cheap, expensive, or irrelevant next to the GPU already sitting on your desk.
Sources
- Grounding DINO GitHub repository: https://github.com/IDEA-Research/GroundingDINO
- Grounding DINO requirements: https://raw.githubusercontent.com/IDEA-Research/GroundingDINO/main/requirements.txt
- Roboflow pricing: https://roboflow.com/pricing
- Segment Anything Model guide: https://aitbizhub.com/use-segment-anything-model-for-image-segmentation/
- IOPaint install guide: https://aitbizhub.com/install-iopaint-ai-photo-editor/
- Real-ESRGAN install guide: https://aitbizhub.com/install-real-esrgan-for-ai-image-upscaling/
- GFPGAN install guide: https://aitbizhub.com/install-gfpgan-for-ai-face-restoration/
Price note — updated December 5, 2026: Prices in this post were checked on December 5, 2026. When you are reading this, the price may be lower or higher. Check the official pricing page before you buy.
Pros
- $0 Apache 2.0 software licence fee with commercial use permitted
- open-set detection from typed category names without training per class
- box and text thresholds you can tune separately
- official command-line demo and Python inference example
- CPU-only mode for a first laptop test
- local workflow keeps private photos on your machine
- natural pairing with segmentation through Grounded-Segment-Anything
- two listed checkpoints, Swin-T and Swin-B, for different needs
Cons
- Python source install with a CUDA setup step that must be right
- no graphical product interface in the core repository
- research benchmarks on COCO do not guarantee your product photos
- prompts and thresholds need tuning and inspection per job
- CPU batches stay slow
- no vendor support desk
- newer team models exist outside this open repository route
- boxes are not masks, counts, or compliance records by themselves
Use Grounding DINO for AI object detection when your real job is finding named objects in changing images, on hardware you already own, without training a detector for every new category. Clone the official repository, set CUDA_HOME correctly, install with pip install -e ., download groundingdino_swint_ogc.pth, and run one real photo with a simple full-stop prompt before any batch. The maths favors Grounding DINO on hardware you already own: $0 in licence fees against $39 a month, $468 a year, for Roboflow Core billed monthly. The break-even line is $39 a month for your time, electricity, and upkeep. Choose the Swin-T checkpoint first because the documented demo uses it. Compare the Swin-B checkpoint on the same test images when box quality matters more than setup simplicity. Choose Roboflow when you need its training, labelling, deployment, or support structure. Choose a trained narrow detector when the object list is fixed and the count must be defended. Choose Grounding DINO when the words change faster than a training dataset can. Respect the limits either way: Grounding DINO finds what your words match; it does not know what your business means. Prompt carefully, tune one threshold at a time, inspect the boxes, and let the model earn each batch.

1 thought on “How to Use Grounding DINO for AI Object Detection (2026)”