Coder Social home page Coder Social logo

ai-dance-based-on-human-pose-estimation's Introduction

AI-Dance-based-on-Human-Pose-Estimation

A Human Pose Skeleton represents the orientation of a person in a graphical format. Essentially, it is a set of coordinates that can be connected to describe the pose of the person. Each co-ordinate in the skeleton is known as a part (or a joint, or a keypoint). A valid connection between two parts is known as a pair (or a limb).

Dependencies

Flow of Human Pose Estimation

  • Extraction of pose coordinates from dance videos using openpose human pose estimation.
  • Training LSTM network on extracted coordinates using video as input and coordinates as output.
  • Display output videos by joining predicted coordinates to generate dancing human stick figures.

How to Execute Code

  1. You will first have to download the repository and then extract the contents into a folder.
  2. Make sure you have the correct version of Python installed on your machine. This code runs on Python 3.6 above.
  3. Now, install the required libraries.
  4. Now go to src folder and run extract_data.py to download videos and audios to data folder. You can add youtube videos links to "video_links.txt" file for downloading.
  5. Download pretrained weights for pose estimation from here. Download pose_iter_440000.caffemodel and save it in "models" folder.
  6. Run demo.py to train LSTM and display predicted dance video.

python main.py --video data/video.mp4 --audio data/audio.wav --background data/bg1.jpg

Results

  1. Pose estimation using openpose on image

image

  1. Pose estimation using openpose on video

NOte : For more information about implementation details, please go through AI Dance based on Human Pose Estimation

References

  1. OpenPose
  2. Moviepy
  3. Pytube
  4. Dancing AI

ai-dance-based-on-human-pose-estimation's People

Contributors

devashi-choudhary avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.