Giter VIP home page Giter VIP logo

google-football-2020's Introduction

Solution to Google Research Football with Manchester City F.C.

In short: MLP and XGB Imitator Models.

The link to the competition overview page.

Commands

Scrape episodes:

python -m football.scraping.scraper

Preprocessing scraped episodes:

python -m football.scraping.preprocess
python -m football.scraping.create_pickle

Train an MLP model:

python -m football.train_mlp_imitator --epochs 100 --batch-size 256

Create the submission:

cp cache/final_weights.pth scripts/model.pth
cp cache/scaler.jbl scripts/
cd scripts && stickytape mlp_submission.py > main.py

Test the submission locally (play 5 games):

cd scripts && python test.py 5

Pack the files into one archive for submission:

cd scripts && zip submission.zip main.py model.pth scaler.jbl

Docker Instructions

This repo comes with a Dockerfile that replicates the development environment.

Install Docker and nvidia-docker. Then build the Docker image:

docker build -t football

Update 20201221: an pre-built image is available now via docker pull ceshine/google-football-2020.

Now you can run the commands in the above section inside a container (with GPU acceleration):

docker run --gpus all --shm-size 1g --rm -ti -v $(pwd):/src -w /src football bash

Since the submission won't have GPU acceleration available, you can run the test script in CPU mode:

docker run --rm -ti -v (pwd):/src -w /src/scripts football python test.py 5

The match videos will be located at a subfolder in cache/runs.

google-football-2020's People

Contributors

ceshine avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

siyamsajeebkhan

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.