Giter Site home page Giter Site logo

ayushlion8 / actionai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smellslikeml/actionai

0.0 0.0 0.0 204.46 MB

Real-Time Spatio-Temporally Localized Activity Detection by Tracking Body Keypoints

Home Page: https://www.hackster.io/actionai/actionai-custom-tracking-multiperson-activity-recognition-fa5cb5

License: GNU General Public License v3.0

Shell 6.84% Python 55.53% Dockerfile 37.63%

actionai's Introduction

ActionAI ๐Ÿคธ

Python 3.x Join the chat at https://gitter.im/action-ai/community stars forks license twitter

ActionAI is a python library for training machine learning models to classify human action. It is a generalization of our yoga smart personal trainer, which is included in this repo as an example.

Getting Started

These instructions will show how to prepare your image data, train a model, and deploy the model to classify human action from image samples. See deployment for notes on how to deploy the project on a live stream.

Installation

Add the smellslikeml PPA and install with the following:

sudo add-apt-repository ppa:smellslikeml/ppa
sudo apt update

# Install with:
sudo apt-get install actionai

Make sure to configure the working directory with:

actionai configure

Using the CLI

Organize your training data in subdirectories like the example below. The actionai cli will automatically create a dataset from subdirectories of videos where each subdirectory is a category label.

.
โ””โ”€โ”€ dataset/
    โ”œโ”€โ”€ category_1/
    โ”‚   โ””โ”€โ”€ *.mp4
    โ”œโ”€โ”€ category_2/
    โ”‚   โ””โ”€โ”€ *.mp4
    โ”œโ”€โ”€ category_3/
    โ”‚   โ””โ”€โ”€ *.mp4
    โ””โ”€โ”€ ...

Then you can train a model with:

actionai train --data=/path/to/your/data/dir --model=/path/to/your/model/dir

And then run inference on a video with:

actionai predict --model=/path/to/your/model/dir --video=/path/to/your/video.mp4

View the default config.ini file included in this branch for additional configurations. You can pass your own config file using the --cfg flag.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details

References

actionai's People

Contributors

smellslikeml avatar mayorquinmachines avatar cclauss avatar gitter-badger avatar dependabot[bot] 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.