inference_cli API Reference¶
lib¶
Internal adapters for Docker container management, benchmarking, cloud deployment, and inference execution.
inference_cli.lib.container_adapter
¶
Functions:¶
terminate_running_containers
¶
terminate_running_containers(
containers, interactive_mode=True
)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
containers
|
List[Container]
|
List of containers to handle |
required |
interactive_mode
|
bool
|
Flag to determine if user prompt should decide on container termination |
True
|
boolean value that informs if there are containers that have not received SIGKILL
| Type | Description |
|---|---|
bool
|
as a result of procedure. |
Source code in inference_cli/lib/container_adapter.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
lib/enterprise/inference_compiler/core/compilation_handlers¶
inference_cli.lib.enterprise.inference_compiler.core.compilation_handlers.engine_builder
¶
Classes¶
EngineBuilder
¶
Parses an ONNX graph and builds a TensorRT engine from it.
Source code in inference_cli/lib/enterprise/inference_compiler/core/compilation_handlers/engine_builder.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
Methods:¶
create_network
¶
create_network(onnx_path)
Parse the ONNX graph and create the corresponding TensorRT network definition. :param onnx_path: The path to the ONNX graph to load.
Source code in inference_cli/lib/enterprise/inference_compiler/core/compilation_handlers/engine_builder.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
lib/roboflow_cloud/data_staging¶
Data staging operations for uploading and managing data in the Roboflow cloud.
inference_cli.lib.roboflow_cloud.data_staging.api_operations
¶
Functions:¶
create_images_batch_from_cloud_storage
¶
create_images_batch_from_cloud_storage(
bucket_path,
batch_id,
api_key,
batch_name=None,
ingest_id=None,
notifications_url=None,
notification_categories=None,
presign_expiration_seconds=86400,
)
Create image batch from cloud storage by generating presigned URLs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bucket_path
|
str
|
Cloud path with optional glob pattern (e.g., 's3://bucket/*/.jpg') |
required |
batch_id
|
str
|
Batch identifier |
required |
api_key
|
str
|
Roboflow API key |
required |
presign_expiration_seconds
|
int
|
Presigned URL expiration time (default: 24 hours) |
86400
|
Internally calls trigger_images_references_ingest with generated presigned URLs.
Source code in inference_cli/lib/roboflow_cloud/data_staging/api_operations.py
2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 | |
create_videos_batch_from_cloud_storage
¶
create_videos_batch_from_cloud_storage(
bucket_path,
batch_id,
api_key,
batch_name=None,
ingest_id=None,
notifications_url=None,
notification_categories=None,
presign_expiration_seconds=86400,
)
Create video batch from cloud storage by generating presigned URLs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bucket_path
|
str
|
Cloud path with optional glob pattern (e.g., 's3://bucket/*/.mp4') |
required |
batch_id
|
str
|
Batch identifier |
required |
api_key
|
str
|
Roboflow API key |
required |
presign_expiration_seconds
|
int
|
Presigned URL expiration time (default: 24 hours) |
86400
|
Internally calls trigger_videos_references_ingest with generated presigned URLs.
Source code in inference_cli/lib/roboflow_cloud/data_staging/api_operations.py
2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 | |
lib/workflows¶
Workflow execution adapters for local images, remote images, and video sources.