Onboarding · 10-minute setup

From zero to first
autonomous gate clear.

Fresh clone to working pipeline in about 10 minutes. Targets Python 3.11+ on Windows (primary — the AIGP sim is Windows-only) or Linux (training proxy only). Read winning-playbook first for why any of this matters.

Target
First gate-clear on SimDrone
smoke test
Python
3.11+
3.10 fallback works
GPU
RTX 4080+ recommended
CPU works slow
Time
~10 min setup · ~2 min smoke
not training

§ 01Clone and install

git clone https://github.com/blakefarabi/grandprix.git
cd grandprix

# venv (Windows)
python -m venv aigp
aigp\Scripts\activate

# venv (Linux / macOS)
python3 -m venv aigp
source aigp/bin/activate

# PyTorch with CUDA 12.8 (RTX 5080 / 40xx / 30xx)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128

# APEX dependencies
pip install opencv-python numpy scipy pyyaml ultralytics \
            stable-baselines3 gymnasium onnxruntime

Verify GPU visibility:

python -c "import torch; print(torch.cuda.get_device_name(0))"
# → NVIDIA GeForce RTX 5080  (or your card)

§ 02Smoke-test the pipeline

python submit_check.py                     # imports + vision + controller smoke
python test_race_standalone.py             # full race against SimDrone proxy
python benchmark_models.py --quick         # detector comparison, 1 lap
If all three pass, the repo is correctly installed and the VQ1 pilot is ready for real-sim integration. Next step: wait for the AIGP sim package (May 2026) and wire the telemetry adapter. See submission guide.

§ 03First training run (optional)

If you want to verify the training path works, run a smoke version (5 epochs, minutes):

python train_apex.py detector --epochs 5   # ~5 min smoke
python train_apex.py keypoints --epochs 5  # ~4 min smoke
python train_apex.py policy --steps 100000 # ~3 min smoke (not converged)

Full overnight APEX run on RTX 5080 is ~7.5 hr. See local-gpu-training.

§ 04Common pitfalls

SymptomCauseFix
torch.cuda.is_available() == FalseCPU-only Torch installedRe-install with --index-url https://download.pytorch.org/whl/cu128
CUDA OOM during PPOToo many parallel envs for 16 GB VRAMDrop n_envs from 4 → 2 in train_apex_policy
ModuleNotFoundError: ultralyticsDep missingpip install ultralytics
submit_check fails on cameraNo webcam + cv2.VideoCapture(0)Already handled; re-run or pass --camera synthetic
Windows bash script failureOld train_all.sh (retired)Use python train_apex.py — cross-platform

Full troubleshooting: troubleshooting.

§ 05Where to go next

Winning Playbook

READ FIRST

How we actually win. Effort budget, reliability math, data pipeline moat, anti-patterns.

master strategy

APEX Pipeline

TRAINING

Three-phase training system: detector → keypoints → PPO. Observation-swap flag for VQ2.

train_apex.py

Quickstart

HOWTO

Minimum viable run — detector weights in, frame in, command out. Single-file reproduction.

one script

Architecture

CORE

End-to-end pipeline, component file map, sensor budget, commands surface.

file map
GETTING-STARTED · v2.0 2026-04-21 · ← Index · Quickstart