GithubHelp home page GithubHelp logo

kerrykerrykerry999 / actor-critic-rl-to-play-fifa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shivamakhauri04/actor-critic-rl-to-play-fifa

0.0 0.0 0.0 10.64 MB

Actor Critic Reinforcement Learning algorithm to train the football agents to dribble, pass, score etc and win a FIFA game

License: MIT License

Python 100.00%

actor-critic-rl-to-play-fifa's Introduction

Football playing AI agent

Demo

Requirements:

-python >=3.6 -pytorch (tested on version 1.3) [pip install torch torchvision] #Assuming cuda 10.2 on the system(refer pytorch website) -google research platform

Steps to install Google Football Research Environment

- sudo apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev \
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev \
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc libsdl-sge-dev python3-pip
-git clone https://github.com/google-research/football.git
-cd football
-pip3 install .

Test the installation of football platform

cd into the repo
Run "python environment_test.py"

It will continuously render the frames:

To train the Football playing agent

-Download my repo -cd into the repo -Run python train.py

To test the model

Requirement:A trained model for 6000 epochs is added in the repo in the name "PPO_act6000.pth' -Run python test.py

actor-critic-rl-to-play-fifa's People

Contributors

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