This is an application of PPO algorithm on the game Super Mario.
pip install -r requirements.txt
python trainer.py
To train with CPU
python trainer.py --device cpu
You may find the AI playback videos in the following folder
cd checkpoints/[game-name]/video
Find the following code snippet in trainer.py, change the parameters as you wish.
ppo = PPO(games.create_mario_profile, dict(world=1, stage=1), 8, 4)