RN_AI icon indicating copy to clipboard operation
RN_AI copied to clipboard

Aim-bot based on AI for all FPS and TPS games

🎯 RN_AI - YOLO Based AI Assistant

Language: Русский | English

Python Windows GUI License

🧠 Overview

RN_AI is a high-performance YOLO-based AI assistant with an intuitive DearPyGui interface. Built with Kalman filtering, and optimized for competitive gaming.

RN_AI Demo

  • Entry point: main.py
  • Core logic: src/ and core/
  • Inspired by: RN_AI_cpp

πŸ’‘ The RN_AI_cpp project is solid and well-designed, but this Python pipeline delivers even higher FPS than C++.


πŸ“Š Performance Comparison (RTX 2060)

All benchmarks performed on NVIDIA RTX 2060 - screen capture excluded.

Metric RN_AI_cpp (C++) RN_AI (Python)
Average FPS 90 – 140 FPS ~240 FPS ⚑
Pipeline Latency ~2 ms ~3.37 ms
Pipeline Overhead Very Low Minimal

πŸ“ˆ RN_AI Profiling Results

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ [PROFILE] RTX 2060          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Capture  : 0.09 ms          β”‚
β”‚ Preproc  : 0.00 ms          β”‚
β”‚ Infer    : 3.12 ms          β”‚
β”‚ Post     : 0.16 ms          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Total    : 3.37 ms βœ“        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🎯 Key Benefits

While RN_AI has slightly higher end-to-end latency, it delivers:

  • βœ… Significantly higher FPS (~240 vs ~140)
  • βœ… Smoother tracking and motion
  • βœ… Higher temporal resolution
  • βœ… Flexible experimentation in Python
  • βœ… Rapid iteration capability

⚠️ Important Warnings

⚠️ Warning ℹ️ Note
Use at your own risk. You may be banned by VAC or Vanguard. Optimized for RTX 20xx and newer GPUs

⚑ Quick Start

Installation & Setup

Step 1: Install Dependencies
install.bat
Optional: Full GPU/CPU Wizard (installer.py)
python src/installer.py

What it does:

  • GPU mode: downloads the CUDA 12.8 installer to the repo folder, then installs PyTorch CUDA (cu128), TensorRT, and onnxruntime-gpu.
  • CPU mode: installs onnxruntime-directml.

Notes:

  • It installs Python packages into the Python environment you run it with (system Python or an active venv).
  • CUDA itself is installed system-wide by the NVIDIA installer it launches.
Step 2: Run the Application
run.bat

πŸ–₯️ GUI Preview

Intuitive interface with real-time monitoring and configuration:

System Panel Aim System Class Detection
System Aim Classes
Driver Control Bypass Settings Strafe Config Config Manager
Driver Bypass Strafe Config

πŸ“ Project Structure

RN_AI/
β”œβ”€β”€ main.py                  # Entry point - Start here
β”œβ”€β”€ cfg.json                 # Main configuration file
β”œβ”€β”€ requirements.txt         # Python dependencies
β”œβ”€β”€ *.bat                    # Helper scripts (build, install, run)
β”‚
β”œβ”€β”€ src/                     # Inference & Utilities
β”‚   β”œβ”€β”€ app.py              # Application core
β”‚   β”œβ”€β”€ inference_engine.py # YOLO inference pipeline
β”‚   β”œβ”€β”€ screenshot_manager.py # Screen capture
β”‚   β”œβ”€β”€ pid.py              # PID controller
β”‚   β”œβ”€β”€ profiler.py         # Performance profiling
β”‚   └── ...
β”‚
β”œβ”€β”€ core/                    # GUI & Control Logic
β”‚   β”œβ”€β”€ gui.py              # DearPyGui interface
β”‚   β”œβ”€β”€ aiming.py           # Aiming algorithms
β”‚   β”œβ”€β”€ recoil.py           # Recoil compensation
β”‚   β”œβ”€β”€ config.py           # Config management
β”‚   β”œβ”€β”€ input.py            # Input handling
β”‚   └── ...
β”‚
└── docs/                    # Documentation & Assets
    β”œβ”€β”€ demo.gif            # Demo animation
    β”œβ”€β”€ gui/                # GUI screenshots
    └── HELP.md             # Help documentation

πŸ§ͺ Profiling & Performance Analysis

CPU Profiling

Analyze CPU usage patterns with py-spy:

profile.bat

This generates detailed CPU profiling data to identify bottlenecks and optimization opportunities.


πŸ€– Model Support

RN_AI supports multiple YOLO model formats and versions:

Format Support Preference Notes
ONNX βœ… Full Standard Cross-platform compatibility
TensorRT (.engine) βœ… Full Preferred ⭐ Best performance on NVIDIA GPUs

Supported YOLO Versions

  • βœ… YOLO v8 through v12
  • πŸ“ Example models available in .weight/
  • πŸŽ›οΈ Fully configurable from GUI

πŸ“ License & Credits

  • Inspired by: RN_AI_cpp
  • Framework: DearPyGui
  • AI Model: YOLO Object Detection

Made with ❀️ for the gaming community

High-performance, flexible, and Pythonic

✨ Features

  • Makcu support with optional input masking
  • Kalman filtering & prediction
  • Dead-zone logic (no target jumping)
  • Multiple capture sources:
    • Screen
    • OBS
    • Capture Card
  • Class filtering:
    • Enable / disable
    • Custom class sets
    • Per-class aim positions

πŸŽ₯ Capture

  • Sources: Standard (screen), OBS, Capture Card.
  • Capture offsets can be set in the GUI.

🧷 Config & Classes

  • Stored in cfg.json. Auto-generated if missing.
  • Class names can be loaded or entered manually in the GUI.
  • Per-class confidence/IOU is supported.

Documentation πŸ“˜

Full GUI and parameter help