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 (March 13, 2025) ๐Ÿ“

  • Added fresh enemy tactics for extra difficulty ๐ŸŽ‰
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.