Giter Club home page Giter Club logo

baseball-action-recognition's Introduction

baseball-action-recognition

Prerequisites

This repository was tested in Ubuntu 18.04 LTS with Python 3.7.4.

The Python requirements are written in requirements.txt. Additionally, to download the Baseball Database (BBDB), you need aria2.

Prepare the Dataset

This repository has two script files to

  1. Download full videos from BBDB, and
  2. Extract segments from full videos

Run the two lines below in order:

python scripts/download_bbdb.py -i bbdb.selected.v0.9.min.json
python scripts/extract_segments_from_videos.py

This should download 45 videos and extract 14826 segments. The segments are divided into train-valid-test split with 60% (8896), 20% (2965), 20% (2965) each. The exact split can be seen at data_split.min.json.

Train I3D

The I3D has two streams: RGB and Flow. Currently this repository only contains code for training the RGB stream. Check the CONFIG dictionary for the hyperparameters.

python train.py

Evaluate I3D

After the training has completed, you can evaluate the model by specifying the model with CONFIG["RGB_I3D_LOAD_MODEL_PATH"] or CONFIG["FLOW_I3D_LOAD_MODEL_PATH"]. Check the CONFIG dictionary for additional hyperparameters.

python evaluate.py

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.