ccengine1 / README.md
ghostai1's picture
Updated Mario AI status on April 03, 2025
02570da verified
|
raw
history blame
2.31 kB
metadata
license: gpl-3.0
language:
  - en
tags:
  - python
  - baseline
  - ai

Mario AI Base ๐ŸŽฎ๐Ÿค–๐Ÿš€

Welcome to Mario AI Base! ๐ŸŽ‰ This repository is your hub for an AI-powered Super Mario Bros. experience. An AI agent, trained with reinforcement learning, plays the game and streams its gameplay live to your browser. A Gradio-based updater app lets you manage daily notes from your LAN. Dive into retro gaming with a modern AI twist! ๐ŸŒŸ

Overview ๐ŸŒ

  • Mario AI Streaming App: An AI (PPO from stable-baselines3) plays Super Mario Bros., streamed at ~30 FPS to http://<your-rig-ip>:5111 via MJPEG with Flask. Supports CUDA acceleration.
  • Python Updater App: Gradio-based tool to update GitHub notes daily, accessible at http://<your-rig-ip>:2332.
  • No ROM Included: Users must provide their own Super Mario Bros. ROM due to licensing. ๐Ÿ•น๏ธ

Features โœจ

  • AI-Driven Gameplay: Watch an AI navigate Mario levels! ๐Ÿง 
  • Live Streaming: Real-time gameplay in your browser. ๐Ÿ“บ
  • CUDA Acceleration: Faster AI inference on GPUs like RTX 3060 Ti. โšก
  • Daily Updates: Log progress with the Gradio app. ๐Ÿ“…
  • LAN Accessible: Stream and control from your network. ๐ŸŒ
  • Customizable: Adjust AI model or add gameplay actions. ๐ŸŽฎ

Setup ๐Ÿ› ๏ธ

Prerequisites ๐Ÿ“‹

  • OS: Ubuntu 20.04+ (tested on "T-1000" with RTX 3060 Ti).
  • Python: 3.8+ (python3 --version).
  • GPU (Optional): NVIDIA GPU (e.g., RTX 3060 Ti) for CUDA.
  • NES ROM: Legal Super Mario Bros.nes (not provided) at /home/ubuntu/mario/.
  • Git: sudo apt install git for the updater.
  • Dependencies: Install with requirements.txt.

Hardware Requirements ๐Ÿ’ป

  • CPU: 2+ cores, 2 GHz (e.g., Intel i5). More for training.
  • GPU: RTX 3060 Ti or similar for CUDA (recommended).
  • RAM: 16 GB minimum (32 GB for training).
  • Storage: 1 GB for dependencies, ROM, and models.

CUDA Setup for GPU Acceleration โšก

Leverage your RTX 3060 Ti for AI inference and frame processing:

  1. Install NVIDIA Drivers:
    sudo apt update
    sudo apt install nvidia-driver-550
    

Website: https://ghostai.pro/ Discord: https://discord.gg/9cnJNBQtHE

Update (April 03, 2025) ๐Ÿ“

  • Tweaked jump controls for improved accuracy