Git Product home page Git Product logo

deep-darts's Introduction

DeepDarts

Code for the CVSports 2021 paper: DeepDarts: Modeling Keypoints as Objects for Automatic Scorekeeping in Darts using a Single Camera

Prerequisites

Python 3.5-3.8, CUDA >= 10.1, cuDNN >= 7.6

Setup

  1. Install Anaconda or Miniconda
  2. Create a new conda environment with Python 3.7: $ conda create -n deep-darts python==3.7. Activate the environment: $ conda activate deep-darts
  3. Clone this repo: $ git clone https://github.com/wmcnally/deep-darts.git
  4. Go into the directory and install the dependencies: $ cd deep-darts && pip install -r requirements.txt
  5. Download images.zip from IEEE Dataport and extract in the dataset directory. Crop the images: $ python crop_images.py --size 800. This step could take a while. Alternatively, you can download the 800x800 cropped images directly from IEEE Dataport. If you choose this option, extract cropped_images.zip in the dataset directory.
  6. Download models.zip from IEEE Dataport and extract in the main directory.

Validation / Testing

To test the Dataset 1 model:
$ python predict.py --cfg deepdarts_d1 --split test

To test the Dataset 2 model and write the prediction images:
$ python predict.py --cfg deepdarts_d2 --split test --write

Training

To train the Dataset 1 model:
$ python train.py --cfg deepdarts_d1

To train the Dataset 2 model:
$ python train.py --cfg deepdarts_d2

You may need to adjust the batch sizes to fit your total GPU memory. The default batch sizes are for 24 GB total GPU memory.

Sample Test Predictions

Dataset 1:
alt text

Dataset 2:
alt text

deep-darts's People

Contributors

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