Live video inference
Project description
Potion
Live video inference tool which relies on VALI. Use it to run the inference on local and network streams. It uses double queue (compressed + reconstructed) in order not to miss a single frame if inference is slow.
As for early version (0.2 for now) it is only tested with densenet.
Install:
pip install python_potion
Usage example:
python3 -m python_potion \
-i http://media.sever/rtsp_stream \
-t 10 \
-gpu_id 0 \
-d dump \
-m densenet_onnx \
-x 12 \
-u 0.0.0.0:8001
What does it mean ?
options:
-h, --help show this help message and exit
-gpu_id GPU_ID, --gpu-id GPU_ID
GPU id, check nvidia-smi
-i INPUT, --input INPUT
Encoded video file (read from)
-t TIME, --time TIME processing time, s.
-d DUMP, --dump DUMP dump video filename without extension
-n NUM_RETRIES, --num_retries NUM_RETRIES
number of attepts to respawn video reader in case of failure
-v, --verbose Enable verbose output, turned off by default
-m MODEL_NAME, --model-name MODEL_NAME
Name of model
-x MODEL_VERSION, --model-version MODEL_VERSION
Version of model. Default is to use latest version.
-b BATCH_SIZE, --batch-size BATCH_SIZE
Batch size. Default is 1.
-u URL, --url URL Inference server URL. Default is localhost:8000.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_potion-0.4.0.post0-py3-none-any.whl.
File metadata
- Download URL: python_potion-0.4.0.post0-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d694b72481fd72fb7fab22c5ba21598b8e7e1e13e3db46b5a20b192bc33e476e
|
|
| MD5 |
42e2597da3930cb118ab8004a49f957a
|
|
| BLAKE2b-256 |
e5325f649ec2bb9a1a63bdc2c8a13a98be098b87cfdc8d86e5091fad50ac3e16
|
Provenance
The following attestation bundles were made for python_potion-0.4.0.post0-py3-none-any.whl:
Publisher:
OnTaggedCommitPush.yml on RomanArzumanyan/Potion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_potion-0.4.0.post0-py3-none-any.whl -
Subject digest:
d694b72481fd72fb7fab22c5ba21598b8e7e1e13e3db46b5a20b192bc33e476e - Sigstore transparency entry: 185438927
- Sigstore integration time:
-
Permalink:
RomanArzumanyan/Potion@4bbc484af5894d3f1f6692971ae86cf4296f2250 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RomanArzumanyan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
OnTaggedCommitPush.yml@4bbc484af5894d3f1f6692971ae86cf4296f2250 -
Trigger Event:
workflow_dispatch
-
Statement type: