Coder Social home page Coder Social logo

pysc2-a3c's Introduction

Neural Grafting Network

DEMO

https://www.youtube.com/watch?v=u-AF5hc8l-o

Environment Setup

Our experiments are based on StarCraftII 3.16, PySC2, Pytorch, and handcrafted mini-games. We highly recommend you install the package through conda.

STEP1: Install StarCraftII 3.16

Please refer to the GitHub page of PySC2 to download and install StarCraftII 3.16.

NOTICE: If you are using AMD CPUs, it may not be compatible with our repo. When I used AMD 5950X to install the StarCraftII 3.16 and our handcrafted mini-games, it didn't work.

STEP2: Create a conda environment and install dependent packages

  • Create a conda environment for Python3.6
conda create --name pysc2_torch18_py36 python=3.6
conda activate pysc2_torch18_py36
  • Install Pytorch 1.8.1 LTS (Here, we take Ubuntu as an example)
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
  • Install PySC2 1.2
pip install pysc2==1.2
pip install pygame==1.9.6 ## Please refer to the troubleshooting as follows for more information

TROUBLE SHOOTING: pygame.error: Unable to make GL context current

STEP3: Install the handcrafted mini-games

Please copy the *.SC2Map files from Maps/mini_games/ to StarCraftII/Maps/mini_games/, and then go to the `pysc2

# TODO

STEP4: Verify the installation

Just play with it!

python -m pysc2.bin.play --map 

Handcrafted Mini-Games

# TODO

Train Reinforcement Learning Agent

# TODO

Results

# TODO

Reference

  1. https://github.com/wing3s/pysc2-rl-mini
  2. A3G: https://github.com/dgriff777/rl_a3c_pytorch

pysc2-a3c's People

Contributors

jielite avatar

Watchers

 avatar  avatar  avatar

pysc2-a3c's Issues

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.