tridivb / Soccer_Ball_Detector_with_FCNN_and_ConvLSTM

A Soccer Ball Detector using Fully Convolutional Neural Networks and ConvLSTM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Soccer Ball Detector using Fully Convolutional Neural Networks and ConvLSTM

License:MIT License


Languages

Language:Python 92.3%Language:Jupyter Notebook 7.7%