Giter Site home page Giter Site logo

pose_detection's Introduction

Introduction

Keypoint extraction is done using mmpose pose detection library.

For dataset, download from drive_download and extract like this:

pose_detection
|── data
    |── images
        |-- Image_1.jpg
        |-- Image_4.jpg
        |-- ...
    |── labels.csv

Run script imabalance.py for creating unbalanced_keypoints.csv.

unbalanced_keypoints.csv file format is:

image_file_name, <x_1, y_1>, <x_2, y_2>, ..., <x_n, y_n>, label

where each <x_n, y_n> corresponds to the coordinate of a keypoint. Each image has a total of 17 keypoints. body/2d_kpt_sview_rgb_img/topdown_heatmap

Run script balance.py for creating balanced_keypoints.csv.

Balancing is done by using RandomOverSampler from imblearn to upsample minority labels.

Resultant .csv files are saved in

pose_detection
|── results
    |-- balanced_keypoints.csv
    |-- unbalanced_keypoints.csv

Run script misc.py for counting labels for each csv file

pose_detection's People

Contributors

mabatin 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.