Alex Hawking (https://github.com/Alex-Hawking) & Connor Grayden
This project investigates the performance of Deep RL models on the game Super Mario Bros through the package gym-super-mario-bros. The two algorithms used were PPO (Alex) and DDQN (Connor), so both options are available for training and testing.
To install this project, follow these steps (each model will have its own directory holding code, these steps need to be executed within the directories):
Follow these steps to get up and running:
-
Create a conda environment using mario.yml:
conda env create --name DDQN_Mario --file mario.yml
-
Activate the environment
activate DDQN_Mario
-
Ensure Correct Environment Setup
├── DDQN
│ ├── DDQN_Model.pt
│ ├── DDQNtrain.pt
│ ├── DDQNrun.py -
Run
To train the model:python DDQNtrain.py
To run the trained model:
python DDQNrun.py
Follow these steps to get up and running:
-
Create a virtual environment:
python3 -m venv venv
(Would highly recommend)
-
Activate the virtual environment:
- Linux/Mac:
source venv/bin/activate
- Windows:
.\venv\Scripts\activate
- Linux/Mac:
-
Install the required packages:
pip install -r requirements.txt
-
Run
python3 main.py