Giter VIP home page Giter VIP logo

comp469_finalproject's Introduction

Comp469_finalproject

An application of retro gym. Attempt different baseline algorithms available on OpenAI.

Getting Started

Prerequisites

Anaconda
Tensorflow
Retro Gym
Gym
Baselines
Opencv
anyrl library
ROMS from this package https://store.steampowered.com/sub/102625/
in this I chose "Sonic The Hedgehog 2"

Installing

1. Anaconda 3.6 for Linux

https://www.anaconda.com/download/#linux

2. Tensorflow

conda create --name gym-retro python=3.5
source activate gym-retro
pip install --ignore-installed --upgrade \ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.8.0-cp35-cp35m-linux_x86_64.whl

3. Gym

pip install gym

4. Retro Gym

pip install gym-retro

5. Baselines

clone this where you store your projects

git clone https://github.com/openai/baselines.git
cd baselines
pip install -e .

6. Import ROMS

After purchase your game on Steam use the below command to import your rom

python -m retro.import.sega_classics

7. Opencv

pip install opencv-python

8. anyrl library

pip install anyrl 

9. Clone this repository

https://github.com/phunguyen1195/Comp469_finalproject.git

10. Run the Game:

take random action

python random_agent.py

always move right

python right_agent.py

JERK algorithm

python jerk_agent.py

Rainbow algorithm

python rainbow_agent.py

ppo2 algorithm

python ppo2_agent.py

NOTES:

This github uses game: Sonic The Hedgehog 2 with stages: CasinoNightZone.Act1 and AquaticRuinZone.Act1 please consult more from these sources if you wish to make changes:

https://github.com/openai/retro
https://github.com/openai/baselines

the latest update of baseline repository is buggy. I used the previous version of baseline github

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.