Last updated
Last updated
You can deploy a Workflow in three ways:
Send images to the Roboflow API for processing using your Workflow.
Create a Roboflow Dedicated Deployment on infrastructure provisioned exclusively for your use.
Run your Workflow on your own hardware using Roboflow Inference.
If you run your Workflow on your own hardware, you can run it on both images and video files and streams. The video streams supported for on device deployment are:
Webcams
RTSP streams
Video files
You can deploy Workflows on any system on which you can deploy Inference. This includes:
NVIDIA Jetson
AWS EC2, GCP Cloud Engine, and Azure Virtual Machines
Raspberry Pi
Roboflow Enterprise customers have access to additional video stream options, such as running inference on Basler cameras. To learn more about our offerings, .
To deploy a workflow, click the "Run Workflow" button in the top left corner of the Workflows editor. All deployment options are documented on this page.
The code snippets in your Workflows editor will be pre-filled with your Workflows URL and API key.
To learn more about usage limits for Workflows, refer to the .
You can run your Workflow on single images using the Roboflow API.
First, install the Roboflow Inference SDK:
Then, create a new Python file and add the following code:
Above, replace API_KEY
with your Roboflow API key. Replace workspace-name
and workflow-id
with your Roboflow workspace name and Workflow IDs.
To find these values, open your Roboflow Workflow and click "Deploy Workflow". Then, copy your workspace name and workflow ID from the code snippet that appears on the page.
You can run your Workflow on single images on your own device.
This works on CPU and NVIDIA CUDA GPU devices. For the best performance, deploy on a GPU-enabled device such as an NVIDIA Jetson or a cloud server with an NVIDIA GPU.
First, install the Roboflow Inference CLI:
The installation process may take a few minutes.
Then, start an Inference server:
Then, create a new Python file and add the following code:
Above, replace API_KEY
with your Roboflow API key. Replace workspace-name
and workflow-id
with your Roboflow workspace name and Workflow IDs.
To find these values, open your Roboflow Workflow and click "Deploy Workflow". Then, copy your workspace name and workflow ID from the code snippet that appears on the page.
You can deploy your Workflow on frames from a video stream. This can be a webcam or an RTSP stream. You can also run your Workflow on video files.
First, install Inference:
It may take a few minutes for Inference to install.
Then, create a new Python file and add the following code:
Above, replace API_KEY
with your Roboflow API key. Replace workspace-name
and workflow-id
with your Roboflow workspace name and Workflow IDs.
To find these values, open your Roboflow Workflow and click "Deploy Workflow". Then, copy your workspace name and workflow ID from the code snippet that appears on the page.
When you run the code above, your Workflow will run on your video or video stream.
Next, install Docker. Follow the to install Docker on your machine.