Run Sapiens Human Foundation models in Pytorch
Project description
Sapiens-Pytorch-Inference
Minimal code and examples for inferencing Sapiens foundation human models in Pytorch
Why
- Make it easy to run the models by creating a
SapiensPredictor
class that allows to run multiple tasks simultaneously - Add several examples to run the models on images, videos, and with a webcam in real-time.
- Download models automatically from HuggigFace if not available locally.
- Add a script for ONNX export. However, ONNX inference is not recommended due to the slow speed.
- Added Object Detection to allow the model to be run for each detected person. However, this mode is disabled as it produces the worst results.
[!CAUTION]
- Use 1B models, since the accuracy of lower models is not good (especially for segmentation)
- Exported ONNX models are too slow.
- Input sizes other than 768x1024 don't produce good results.
- Running Sapiens models on a cropped person produces worse results, even if you crop a wider rectangle around the person.
Installation
git clone https://github.com/ibaiGorordo/Sapiens-Pytorch-Inference.git
cd Sapiens-Pytorch-Inference
pip install -r requirements.txt
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 Distribution
sapiens_inferece-0.1.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for sapiens_inferece-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d15d659ecc6eae5276c30611e8edad06ac4d79a74000c04fef93847136c70d |
|
MD5 | 510c8edafa442c432ce3a588893cf92d |
|
BLAKE2b-256 | 6633fb7d972a6fa04414138af1ad43abbebd3b6b9da925e7967bd0cef71b32bc |