Deploy Grounding DINO to NVIDIA Jetson
Set up your Jetson and run Grounding DINO with Roboflow Inference, on its own or inside a Workflow.
Overview
Grounding DINO detects objects from a text prompt, so it finds classes it was never trained on. It is slower than a trained detector and best for labeling data or prototyping. To deploy Grounding DINO to NVIDIA Jetson, you will:
- Set up your Jetson and start the Inference Server
- Run Grounding DINO on an image
- Run Grounding DINO in a Workflow
- Deploy with a coding agent
Step 1: Set Up Your Jetson
Flash the Jetson with JetPack 5, 6 or 7 and keep at least 10 GB of disk free for the Inference image. An Orin NX 16 GB or larger runs bigger models best. JetPack includes NVIDIA's container runtime; install Docker (opens in a new tab) if the device does not have it yet.
Install the Inference CLI and start the server. It reads your JetPack version and pulls the image built for it, such as roboflow/roboflow-inference-server-jetson-6.2.0 on JetPack 6.2:
pip install inference-cli
inference server startTo start the container yourself on JetPack 6.2 instead:
sudo docker run -d \
--name inference-server \
--runtime nvidia \
--read-only \
-p 9001:9001 \
--volume ~/.inference/cache:/tmp:rw \
--security-opt="no-new-privileges" \
--cap-drop="ALL" \
--cap-add="NET_BIND_SERVICE" \
roboflow/roboflow-inference-server-jetson-6.2.0:latestOn a Jetson the server answers on every network interface (port 9001), so other machines on your network can call it. Start it with inference server start --bind-address 127.0.0.1 to keep it on the device. The Jetson install guide (opens in a new tab) lists the image for every JetPack version.
Step 2: Run Grounding DINO on an Image
pip install requestsSet the ROBOFLOW_API_KEY environment variable to your Roboflow API key (opens in a new tab) first. Then run:
import base64
import os
import requests
with open("image.jpg", "rb") as f:
image = base64.b64encode(f.read()).decode("utf-8")
response = requests.post(
"http://localhost:9001/grounding_dino/infer",
headers={"Authorization": f"Bearer {os.environ['ROBOFLOW_API_KEY']}"},
json={
"image": {"type": "base64", "value": image},
"text": ["forklift", "person", "pallet"],
},
)
print(response.json()["predictions"])Each prediction has a class from your prompt, a confidence and a box (center x, y, width and height). The first request downloads the model weights, so it takes longer than the ones after. See the Grounding DINO docs (opens in a new tab) for every option.
Step 3: Run a Workflow
A Workflow chains models with the logic around them, such as counting, tracking, filtering by zone or sending results to your own systems, and runs on your Jetson like a single model does. Build one in the Roboflow app, then run it by its workspace and Workflow ID:
import os
from inference_sdk import InferenceHTTPClient
client = InferenceHTTPClient(
api_url="http://localhost:9001",
api_key=os.environ["ROBOFLOW_API_KEY"],
)
result = client.run_workflow(
workspace_name="YOUR_WORKSPACE",
workflow_id="YOUR_WORKFLOW_ID",
images={"image": "image.jpg"},
)
print(result[0])The result has one entry per image, holding every output the Workflow defines. To run the Workflow on video, pass workflow and workspace to client.webrtc.stream() in place of model_id (video with Workflows (opens in a new tab)). See Deploy a Workflow (opens in a new tab) for the other ways to run one.
Grounding DINO does not have a Workflow block yet, so call it directly as in the step above, and use Workflows for the models and logic around it.
Step 4: Deploy with a Coding Agent
The Roboflow MCP server (opens in a new tab) gives a coding agent such as Claude Code or Cursor access to your Roboflow workspace. It can list your models, run one on a test image, build and run a Workflow, and write the deployment code for your Jetson. Add it to Claude Code:
claude mcp add -s user roboflow --transport http https://mcp.roboflow.com/mcpThe first time the agent uses it, you sign in to Roboflow in your browser. In Cursor, add https://mcp.roboflow.com/mcp under mcpServers in ~/.cursor/mcp.json. Then ask the agent, for example: "Deploy my Grounding DINO model to NVIDIA Jetson with Roboflow Inference and write a script that runs it on my camera stream."