Code Monkey home page Code Monkey logo

soccer_ball_detector_with_fcnn_and_convlstm's Introduction

Soccer Ball Detector with Feedforward Fully Convolutional NeuralNetworks (FCNN) and Convolutional LSTM

Unofficial implementation of the paper Detection and Localization of Features on a SoccerField with Feedforward Fully Convolutional NeuralNetworks (FCNN) for the Adult-Size HumanoidRobot Sweaty. Despite the ability of FCNNs to capture spatial data, they lack the ability to learn temporal patterns. Convolutional LSTM or Convolutional GRU models have provided solutions for this by retaining information from frames over multiple time steps to draw an inference. A ConvLSTM module is therefore added to the SweatyNet model to predict frames where it fails to detect a ball. The ideas are inspired from Convolutional Gated Recurrent Networks for Video Segmentation.

Getting Started

git clone https://github.com/tridivb/Soccer_Ball_Detector_with_FCNN_and_ConvLSTM.git

Prerequisites

Python 3.x
Pytorch 0.4.1
Visdom
OpenCV 3.x
Pandas
ImageIo
Numpy
PIL

Running the code

Run it from the command line using the following:
python main.py --model 1 --niter 1

To see list of all available arguments:
python main.py --h

Dataset files can be placed anywhere but please make sure that the annotation file is in csv format and the column order is as annotation_type, filename, x1, y1, x2, y2, center_x, center_y, width, height.
Trained models and sample output files are present in the output directory.

Results

Sample from testing on an un-annoted dataset

Original Image with detected Bounding Box(Left) and Predicted Heat-map (Right)

License

Please respect the original license of the authors for the papers mentioned above and the libraries used for ConvLSTM and ConvGRU.

Acknowledgments

soccer_ball_detector_with_fcnn_and_convlstm's People

Contributors

tridivb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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