Giter Site home page Giter Site logo

oscar's Introduction

OSCAR

OSCAR (Omniscient Starcraft Awesome Retaliator) is an autonomous team project conducted during a semester at INSA Lyon, France. It aims at experimenting artificial intelligence for Starcraft II, using the PySc2 API from DeepMind.
The project consists in:

  • a hierarchical framework to unify some small specialized agent (read more)
  • a scripted multi-agent bot playing the full game (read more, video)
  • some tools and agents to experiment reinforcement learning (read more)

Installation (Unix)

The project requires Python 3.5.

git clone https://github.com/Xaxetrov/OSCAR.git
pip3 install pysc2
pip3 install gym
pip3 install baselines

Run (Unix)

cd OSCAR
Add current directory to Python path: export PYTHONPATH=$(pwd)

Scripted bot

The General agent should be launched with PySc2. For example,
python3 -m pysc2.bin.agent --agent_race terran --agent2_race terran --difficulty very_easy --map Flat64 --agent oscar.agent.commander.general.General

Deep Q-Network

training: python learning_tools/baseline/dqn/custom_learn.py
test: python learning_tools/baseline/dqn/custom_test.py

Asynchronous Actor-Critic Agents (A3C)

training: python learning_tools/A3C_learner/main.py
test: python learning_tools/A3C_test/a3c_tester.py

TODO

  • Fix neural network save in DQL algorithm learning_tools/baseline/dqn/custom_learn.py
  • Allow to generate the "general-learning-v0" environment with the config file as a parameter (and the map ?) ((this will not work when using the gym.make command but nothing forbids us to use our own constructor))

Authors

Bruno Godefroy

Edern Haumont

Jérome Liermann

Ruben Pericas-Moya

François Robion

Nicolas Six

oscar's People

Contributors

anliec avatar frobion avatar xaxetrov avatar gegeai avatar

Stargazers

Gabriel Caldas avatar  avatar David Aparicio avatar Yann Cardon avatar  avatar Bruno Godefroy avatar

Watchers

 avatar  avatar  avatar Bruno Godefroy avatar Ruben Péricas-Moya avatar  avatar

oscar's Issues

Gym 0.10

OSCAR is not compatible with gym 0.10 as they changed methods of the class gym.Env (_reset -> reset ...)
However gym 0.9.4 still work fine

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.