Giter Club home page Giter Club logo

super-mario-reinforcement_learning's Introduction

[PYTORCH] Reinforcement Learning-Super Mario Bros Using CNNPolicy

Packages Used:

  • gym-super-mario-Bros == 7.3.2
  • gym == 0.21.0
  • ipykernal
  • Stable-Baselines3
  • Pytorch 1.13

Setting Up Pytorch

I would recoomend you to check official Pytorch website to install it
The Pytorch need the exact version of Cuda and CUDnn to work normally
Pytorch website: pytorch

Creating Virtual Environment:

setting up a virtual environment will really help in Creating a seperatiion wwithin your workspace and PC
Run following to create a virtual environment

  • launch cmd
  • move to your desired directory
  • Run the following: python -m venv mario activate your virtual env using following:
    .\mario\Scripts\activate
    to deactivte just type deactivate in cmd

Creating a New kernel in Jupyter Notebook

After installing Ipykernal run the following:
python -m ipykernel install --user --name=mario

note: the name of kernel should be same as venv name

Training the Agent

Either clone my repo or download the zip or copy paste the code and run them
Github clone Link: https://github.com/harikris001/Super-Mario-Reinforcement_Learning.git
Run the cells and wait for it to complete.

After Training:

OUTPUT
Sl.NO 1 2 3
Total Steps .5M 1M 1.5M
Completed Level False False False
OUTPUT
----------------- ------ ------ ------
Sl.NO 4 5 6
Total Steps 2M 2.5M 3M
Completed Level False False False
OUTPUT
----------------- ------ ------ ------
Sl.NO 7 8 9
Total Steps 3.5M 4M 4.5M
Completed Level False False False
OUTPUT
----------------- ------ ------
Sl.NO 10 11
Total Steps 5M 5.5M
Completed Level False False

I have attached the Pre trained models u can resume training using these model and save the result
The best model during my training was 4M model so i have attached that

super-mario-reinforcement_learning's People

Contributors

harikris001 avatar

Stargazers

 avatar

Watchers

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