π Added
π₯ Video processing in `workflows` π€―
Weβre excited to announce that, thanks to the contributions of grzegorz-roboflow, our Workflows ecosystem now extends to video processing! Dive in and explore the new possibilities:
https://github.com/user-attachments/assets/b4778f79-7630-4393-8abd-7d3a5ba64f5c
New blocks:
* [Time In Zone](https://inference.roboflow.com/workflows/blocks/timeinzone/) to analyse dwell time
* [Line Counter](https://inference.roboflow.com/workflows/blocks/line_counter/) to detect objects passing line
* Visualisation for [zone](https://inference.roboflow.com/workflows/blocks/polygon_zone_visualization/) and [line counter](https://inference.roboflow.com/workflows/blocks/line_counter_visualization/)
We've introduced minimal support for video processing in the Workflows UI, with plans to expand to more advanced features soon. To get started, you can create a Python script using the InferencePipeline, similar to the provided [example](https://gist.github.com/PawelPeczek-Roboflow/585bb4dcb3ecde090537e7e7e9e17281).
*Video source [YT | Karol Majek](https://www.youtube.com/watch?v=MNn9qKG2UFI&t=0s)*
π₯ OWLv2 π€ `inference`
Thanks to probicheaux we have [OWLv2](https://arxiv.org/abs/2306.09683) model in `inference`. OWLv2 was primarily trained to detect objects from text. The implementation in Inference currently only supports detecting objects from visual examples of that object.
You can use model in `inference` server - both CPU and GPU, as well as in Python package. Visit our [π docs](https://inference.roboflow.com/foundation/owlv2/) to learn more.
https://github.com/user-attachments/assets/d4933ea6-3ea1-4259-ba5a-9f1f6113e5a7
π TROCR π€ `inference`
stellasphere shipped TROCR model to expand OCR models offering in `inference` π₯
You can use model in `inference` server - both CPU and GPU, as well as in Python package. Visit our [π docs](https://inference.roboflow.com/foundation/trocr/) to learn more.
π§βπ Workflows - endpoint to discover interface
Guessing the data format for Workflow inputs and outputs was a challange as for now, but thanks to EmilyGavrilenko this is no longer the case. We offer two new endpoints (for [workflows registered on the platform](https://detect.roboflow.com/docs#/default/describe_predefined_workflow_interface__workspace_name__workflows__workflow_id__describe_interface_post) and for [workflows submitted in payload](https://detect.roboflow.com/docs#/default/describe_workflow_interface_workflows_describe_interface_post)). Details in https://github.com/roboflow/inference/pull/644.
<details>
<summary>π Example response</summary>
json
{
"inputs": {
"image": ["image"],
"model_id": ["roboflow_model_id"],
},
"outputs": {
"detections": ["object_detection_prediction"],
"crops": ["image"],
"classification": {
"inference_id": ["string"],
"predictions": ["classification_prediction"],
},
},
"typing_hints": {
"image": "dict",
"roboflow_model_id": "str",
"object_detection_prediction": "dict",
"string": "str",
"classification_prediction": "dict",
},
"kinds_schemas": {
"image": {},
"object_detection_prediction": {"dict": "with OpenAPI 3.0 schema of result"},
"classification_prediction": {"dict": "with OpenAPI 3.0 schema of result"}
}
}
</details>
π± Changed
* Bring back transformers extras by probicheaux in https://github.com/roboflow/inference/pull/639
* Move xformers to paligemma code by probicheaux in https://github.com/roboflow/inference/pull/641
* Cache plan details by grzegorz-roboflow in https://github.com/roboflow/inference/pull/636
* Bump next from 14.2.7 to 14.2.12 in /inference/landing by dependabot in https://github.com/roboflow/inference/pull/649
π§ Fixed
* Fixed bug with Workflows Execution Engine causing bug when conditional execution discards inputs of a step that changes dimensionality - see details in https://github.com/roboflow/inference/pull/645
β»οΈ Removed
* Remove unmaintained device management code by robiscoding in https://github.com/roboflow/inference/pull/647
**Full Changelog**: https://github.com/roboflow/inference/compare/v0.18.1...v0.19.0