Skip to main content

ViTPose-Pytorch no mmcv needed

ViTPose (https://github.com/ViTAE-Transformer/ViTPose) + ByteTrack (https://github.com/ifzhang/ByteTrack) + yolov5 (https://github.com/ultralytics/yolov5)

Preparation

Download the official weights from ViTPose. Create a dictionary called models. Tested with both the vitpose-b models.

mkdir models
mv <weight_path> ~/ViTPose-Pytorch/models/

Requirements

If nvidia-tensorrt is not found install nvidia-pyindex first.

pip3 insltall -r requirements.txt

How to run

Export ViTPose TRT model

python3 export.py --include engine --device 0

Export yolov5 engine, either by cloning the official yolov5 repo and using the export function or via cd /.cache/torch/hub/yolov5_master and exporting from there. Move the engine file into the root folder of ViTPose-Pytorch.

With a webcam or another device

ls /dev/vid*

3 demo examples are provided . To use this lib as a package run

python3 -m build

Install the whl in the dist folder via pip.

Examples

With TRT

Metadata

Release files for vitpose-infer 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vitpose-infer 0.2.0
File Size Uploaded Provenance Actions
vitpose_infer-0.2.0.tar.gz 100.7 kB Without provenance Details for vitpose_infer-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vitpose-infer 0.2.0
File Interpreter ABI Platform Actions
vitpose_infer-0.2.0-py3-none-any.whl Python 3 none any Details for vitpose_infer-0.2.0-py3-none-any.whl

Total release size: 255.7 kB

Release files / vitpose_infer-0.2.0.tar.gz

Download URL vitpose_infer-0.2.0.tar.gz
Size 100.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d3567c6a1b534ec8c1bb0ea3f04f3617141fccbd2c9fdfd583f65931b1f90269
BLAKE2b-256 checksum
How to use checksums
e3ccb5b5047b32779bb18db2f767b95de8aaedfa169cde6697520e440d3bcd06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / vitpose_infer-0.2.0-py3-none-any.whl

Download URL vitpose_infer-0.2.0-py3-none-any.whl
Size 155.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f9515e664c429f8aab7aca7821838e0caca70adcf1f69d507cbda290cd0c1fe
BLAKE2b-256 checksum
How to use checksums
3f1feac0af8d21af7485adadbf474fdc99cd3bd9166c0623bafdad80783c54dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for vitpose-infer 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page