Skip to content

v0.59.1

Choose a tag to compare

@grzegorz-roboflow grzegorz-roboflow released this 31 Oct 23:32
· 2185 commits to main since this release
2928dd1

馃挭 Added

馃摵 hosted webrtc

Thanks to @grzegorz-roboflow we have a great news 馃敟

With this release of inference it is now possible to easily process video streams over webrtc with inference!

We prepared example script to showcase how to process streams from your python scripts. Start inference server, and then stream web-cam in order to start processing the stream and to see live preview produced by inference:

python examples/webrtc/webrtc_worker.py \
    --workspace-id="<your workspace>" \
    --workflow-id="<your workflow id>" \
    --api-key="<your API key>" \
    --inference-server-url="http://127.0.0.1:9001" \
    --realtime

Locally stored files can also be streamed and processed:

python examples/webrtc/webrtc_worker.py \
    --workspace-id="<your workspace>" \
    --workflow-id="<your workflow id>" \
    --api-key="<your API key>" \
    --inference-server-url="http://127.0.0.1:9001" \
    --source "/path/to/file.mp4" \
    --realtime

The processing can be performed on Modal simply export WEBRTC_MODAL_TOKEN_ID and WEBRTC_MODAL_TOKEN_SECRET with your credentials, and inference takes care of creating Modal app and processing stream on Modal function. All aspects of Modal execution are controlled through environmental variables. On-demand stream processing on CPU or GPU is extremely easy with this feature!

The feature is also available through our app https://app.roboflow.com:

image

Check out details #1612

Other new features

馃敡 Fixed

馃彙 Maintenance

馃ゼ inference-experimental

Full Changelog: v0.59.0...v0.59.1