simple_bodypix_python
simple_bodypix_python copied to clipboard
A simple and minimal bodypix inference in python
simple_bodypix_python
A simple and minimal bodypix inference in python
Getting Started
- Install requirements
- Download tfjs models for bodypix.
# For example, download a ResNet50-based model to ./bodypix_resnet50_float_model-stride16
$ ./get-model.sh bodypix/resnet50/float/model-stride16
- Set path to models and image for inference in .py files
imagePath = './awesome_img.jpg'
modelPath = './bodypix_resnet50_float_model-stride16/'
- python3 evalbody_singleposemodel.py (Image with single person)
Observed Results
SINGLE POSE OUTPUT
Acknowledgement
- https://github.com/patlevin for support functions
- https://github.com/likeablob for download script
Note:
Multipose is work in progress. Pull Requests are welcome.