@@ -60,6 +60,17 @@ By installing `inference-cli` you gain access to the `inference rf-cloud` comman
6060managed components of the Roboflow Platform — including ` batch-processing ` and ` data-staging ` , the core components of
6161the Roboflow Batch Processing offering.
6262
63+ !!! hint "Inference CLI setup"
64+
65+ To follow the tutorial you must install `inference-cli` and export your Roboflow API key.
66+
67+ ```bash
68+ pip install inference-cli
69+ export ROBOFLOW_API_KEY="YOUR-API-KEY-GOES-HERE"
70+ ```
71+
72+ If you struggle to find the API key, check our [guide](https://docs.roboflow.com/api-reference/authentication).
73+
6374The typical flow of interaction with the CLI is as follows:
6475
6576First, ingest data into the platform. For images, use the following command:
@@ -89,20 +100,32 @@ Once the data is ingested - you can trigger batch job.
89100For images, use the following command:
90101
91102``` bash
92- inference rf-cloud batch-processing process-images-with-workflow --workflow-id < workflow-id> --batch-id < batch-id>
103+ inference rf-cloud batch-processing process-images-with-workflow \
104+ --workflow-id < workflow-id> \
105+ --batch-id < batch-id> \
106+ --machine-type gpu
93107```
94108
95109For videos:
96110
97111``` bash
98- inference rf-cloud batch-processing process-videos-with-workflow --workflow-id < workflow-id> --batch-id < batch-id>
112+ inference rf-cloud batch-processing process-videos-with-workflow \
113+ --workflow-id < workflow-id> \
114+ --batch-id < batch-id> \
115+ --machine-type gpu \
116+ --max-video-fps < your-desired-fps>
99117```
100118
101119!!! hint "How would I know ` <workflow-id> ` ?"
102120
103121 Workflow ID can be found in Roboflow App - open Workflow Editor of selected Workflow, hit "Deploy" button
104122 and find identifier in code snippet.
105123
124+ !!! hint "GPU vs CPU"
125+
126+ By default, processing run on CPU device, but if you require extra compute power - use `--machine-type gpu`
127+ option of the above commands.
128+
106129Command will ** display the ID of the job** , which can be used to check the job status:
107130
108131``` bash
@@ -176,7 +199,7 @@ potential costs.
176199* Certain Workflow blocks requiring access to env variables and local storage (like File Sink and Environment
177200Secret Store) are blacklisted and will not execute.
178201
179- * Service only works with Workflows that define ** singe ** input image parameter.
202+ * Service only works with Workflows that define ** single ** input image parameter.
180203
181204
182205## Technical Details of Batch Processing
@@ -191,7 +214,7 @@ for processing (each batch is processed by a single job).
191214output batch that you can retrieve later. We ** advise** using ` export ` stage outputs, as they are optimized for
192215network transfer (content is compressed / packed into an archive).
193216
194- * A running job in the ` processing ` tage can be aborted using both the UI and CLI.
217+ * A running job in the ` processing ` stage can be aborted using both the UI and CLI.
195218
196219* An aborted or failed job can be restarted using the mentioned tools.
197220
0 commit comments