Git Product home page Git Product logo

retinanet-player-ball-detection's Introduction

RetinaNet Player and Ball Detection

This project shows you how you can build a Computer Vision model that can detect players and ball in overhead camera images using RetinaNet.

This project uses Fizyr's awesome keras-retinanet implementation, and applies it to Haizaha's Soccer Player and Ball Detection free dataset.

Setup

You will need the Tensorflow and Keras installed in addition to the standard shenanigan.

The Data

To get the data and the pre-trained weight, run download.sh:

bash download.sh

This will download everything you need to run the project, including downloading and compiling keras-retinanet

Inference

To test the pre-trained model on a sample image, just run predict.py

python predict.py

Training

To train the model:

python keras-retinanet/keras_retinanet/bin/train.py --snapshot pre-trained/resnet50_csv_last.h5 csv data/train.csv data/labels.csv --val-annotations data/valid.csv

Before you can use the newly trained model, you'll need to convert it into an inference model:

python keras-retinanet/keras_retinanet/bin/convert_model.py ./snapshots/resnet50_csv_01.h5 ./snapshots/resnet50_csv_01_inference.h5

retinanet-player-ball-detection's People

Contributors

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