Test a Workflow
Last updated
Was this helpful?
Last updated
Was this helpful?
To test a workflow, click the "Test Workflow" button at the top of the Workflow editor.
The interface has two core components, the Input and Output sections.
Media inputs can accept an image, video stream, or video file.
Images: supported on the Hosted API, Dedicated Deployments, and self-hosted servers.
Video Streams: require a Dedicated Deployment or self-hosted server to test in the UI and deploy on a continuous live stream.
Video Files: require a self-hosted server to deploy. Currently not supported for testing in the web UI, and require python code to execute.
Parameter inputs can accept non-image data types, such as strings, booleans, numbers, arrays, and objects.
In my workflow below, I’ve configured it to accept an image, a number for the confidence filter, and a list of classes as the class_names inputs.
All workflows will return a JSON payload. The values that are returned are defined in the Outputs block. If you are missing fields in the workflow response, or want to rename the variables, you can update the workflow response definition.
If your Workflow contains an image output (i.e. a Workflow that uses a Visualization block to show the results from a model), you can preview the images by selecting the “Visual” setting.
Here is an example of a sample workflow response: