bharath5673 / yolov7-pose-estimation

YOLOv7 Pose estimation using OpenCV, PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yolov7-pose-estimation

Steps to run Code

  • Clone the repository.
git clone https://github.com/RizwanMunawar/yolov7-pose-estimation.git
  • Goto the cloned folder.
cd yolov7-pose-estimation
  • Create a virtual envirnoment (Recommended, If you dont want to disturb python packages)
### For Linux Users
python3 -m venv psestenv
source psestenv/bin/activate

### For Window Users
python3 -m venv psestenv
cd psestenv
cd Scripts
activate
cd ..
cd ..
  • Upgrade pip with mentioned command below.
pip install --upgrade pip
  • Install requirements with mentioned command below.
pip install -r requirements.txt
  • Download yolov7 pose estimation weights from link and move them to the working directory {yolov7-pose-estimation}

  • Run the code with mentioned command below.

python pose-estimate.py

#if you want to change source file
python pose-estimate.py --source "your custom video.mp4"
  • Output file will be created in the working directory with name ["your-file-name-without-extension"+"__keypoint.mp4"]

Poseestimation

RESULTS

References

My Medium Articles

About

YOLOv7 Pose estimation using OpenCV, PyTorch

License:GNU General Public License v3.0


Languages

Language:Python 100.0%