Skip to content

Asadashino-o/golf-human

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golf-human-detection

Overview

This project is an attempt to perceive changes in the position of the human buttocks and head during golf through AI. It mainly relies on the densepose project in Detectron2, a project package of Facebook AI Research, and also uses Flask to write a visual webpage connecting the front-end and server back-end.It is forked from Flode-Labs/vid2densepose.

Prerequisites

To utilize this tool, ensure the installation of:

  • Python 3.8 or later
  • PyTorch (preferably with CUDA for GPU support)

Installation Steps

  1. Create a virtual environment for your anaconda or miniconda:

    conda create -n your_env_name python=3.9
    conda activate your_env_name
    
    

    Install the right pytorch version and able to use cuda. You can use "nvcc -V" to see your cuda version

  2. Clone the repository:

    git clone https://github.com/Asadashino-o/golf-human.git
    cd golf-human
  3. Install necessary Python packages:

    pip install -r requirements.txt
    conda install opencv -c conda-forge
  4. Clone the Detectron repository:

    git clone https://github.com/facebookresearch/detectron2.git
  5. Download the pkl weight file to human-golf/ Download URL: densepose-R50_FPN_six

Usage Guide

Run the script:

python main.py -i sample_videos/input_video.mp4 -o sample_videos/output_video.mp4

The script processes the input video and generates an output video with the draw-line format.

Web Interface

You can also use the flask to run the web with an interface. To do so, run the following command:

cd flaskk
python server.py

After it runs in linux command-line. You can open your browser and input your URL.

Acknowledgments

Thanks to:

It is just a copy-learning project.

Support

For any inquiries or support, please file an issue in GitHub repository's issue tracker.

About

Convert your videos to densepose and use it on Golf-detection

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 86.5%
  • HTML 13.5%