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)
| File | Size | Uploaded | |
|---|---|---|---|
| vitpose_infer-0.2.0.tar.gz | 100.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vitpose_infer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|