Complete installation instructions for the MuGS project.
Last Updated: 2026-05-02
Minimum:
- GPU: NVIDIA GPU with 8GB VRAM (RTX 3070 or equivalent)
- RAM: 16GB system memory
- Storage: 50GB free space (10GB code + 40GB assets/models)
- CPU: 4+ cores recommended
Recommended:
- GPU: NVIDIA GPU with 24GB VRAM (RTX 4090, A6000)
- RAM: 32GB+ system memory
- Storage: 100GB+ SSD
- CPU: 8+ cores
Why GPU is required:
- gsplat rendering requires CUDA
- MuJoCo Warp requires GPU
- SR model training requires GPU
- OS: Linux (Ubuntu 20.04+), macOS (limited support), Windows (via WSL2)
- Python: 3.10 or 3.11 (3.12 not tested)
- CUDA: 11.8 or 12.1 (match PyTorch version)
- Git: For version control
| GPU | CUDA | Python | PyTorch | Status |
|---|---|---|---|---|
| RTX 4090 | 12.1 | 3.10 | 2.1.0 | ✅ Verified |
| RTX 3090 | 11.8 | 3.10 | 2.0.1 | ✅ Verified |
| A6000 | 12.1 | 3.11 | 2.1.0 | ✅ Verified |
| RTX 3070 | 11.8 | 3.10 | 2.0.1 |
For experienced users - Full installation in ~15 minutes:
# 1. Clone repository (if not already done)
cd /home/ununtu/metabot-workspace/mugs
# 2. Create virtual environment
python3.10 -m venv venv
source venv/bin/activate
# 3. Install MuGS package
pip install -e ".[all]"
# 4. Download assets
python scripts/data_collection/download_assets.py --preset recommended
# 5. Verify installation
python -c "import mugs; print(mugs.__version__)"
python scripts/evaluation/check_environment.pyDone! Proceed to Quick Start Guide
Ubuntu/Debian:
sudo apt update
sudo apt install -y \
git \
python3.10 \
python3.10-venv \
python3-pip \
build-essential \
cmake \
ninja-build \
libgl1-mesa-dev \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1macOS:
brew install python@3.10 cmake ninja# Check NVIDIA driver
nvidia-smi
# Check CUDA version
nvcc --version
# Recommended: CUDA 11.8 or 12.1If CUDA not installed, download from:
- CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
- cuDNN: https://developer.nvidia.com/cudnn
Option A: venv (Recommended)
cd /home/ununtu/metabot-workspace/mugs
# Create environment
python3.10 -m venv venv
# Activate
source venv/bin/activate # Linux/macOS
# venv\Scripts\activate # Windows
# Verify Python version
python --version # Should show Python 3.10.xOption B: conda
# Create environment
conda create -n mugs python=3.10
# Activate
conda activate mugspip install --upgrade pip setuptools wheelcd /home/ununtu/metabot-workspace/mugs
# Install in editable mode with all dependencies
pip install -e ".[all]"
# Or install specific groups:
# pip install -e . # Core only
# pip install -e ".[dev]" # Core + dev tools
# pip install -e ".[sr]" # Core + SR models
# pip install -e ".[assets]" # Core + asset processingThis installs:
- Core dependencies: PyTorch, gsplat, MuJoCo, etc.
- Development tools: pytest, black, mypy, etc.
- SR dependencies: SwinIR, LPIPS, etc.
- Asset tools: OpenCV, COLMAP wrappers, etc.
Installation time: ~5-10 minutes (depends on network speed)
gsplat requires compilation:
# Install from source (recommended for latest version)
pip install git+https://github.com/nerfstudio-project/gsplat.git
# Or install specific version
pip install gsplat==1.5.0Note: First installation compiles CUDA kernels (~2-3 minutes)
# MuJoCo Python bindings
pip install mujoco
# MuJoCo Warp (GPU-accelerated, if available)
# pip install mujoco-warp # TODO: Check availabilityVerify MuJoCo:
python -c "import mujoco; print(mujoco.__version__)"# Recommended starter set (~500 MB, ~10 min)
python scripts/data_collection/download_assets.py --preset recommended
# Or minimal set for testing (~50 MB, ~2 min)
python scripts/data_collection/download_assets.py --preset quick
# Or full asset library (~2 GB, ~30 min)
python scripts/data_collection/download_assets.py --preset fullWhat this downloads:
- 3DGS object models (
.plyfiles) - Pre-trained SR models (SwinIR, etc.)
- LPIPS perceptual loss models
- Example scene configurations
See Asset Acquisition Guide for manual download instructions.
# Import MuGS
python -c "import mugs; print(f'MuGS version: {mugs.__version__}')"
# Check dependencies
python -c "import torch; print(f'PyTorch: {torch.__version__}, CUDA: {torch.cuda.is_available()}')"
python -c "import gsplat; print(f'gsplat: {gsplat.__version__}')"
python -c "import lpips; print('LPIPS: OK')"Expected output:
MuGS version: 0.1.0
PyTorch: 2.1.0+cu121, CUDA: True
gsplat: 1.5.0
LPIPS: OK
python scripts/evaluation/check_environment.pyExpected output:
✅ Python version: 3.10.x
✅ PyTorch installed: 2.1.0
✅ CUDA available: True (12.1)
✅ GPU detected: NVIDIA RTX 4090 (24GB)
✅ gsplat installed: 1.5.0
✅ MuJoCo installed: 3.0.0
✅ Assets found: 20 objects, 2 models
✅ All checks passed!
# Render a sample 3DGS object
python examples/basic/render_single_view.py
# Expected: Opens window with rendered image
# Or saves to outputs/render_test.pngFor contributors and developers:
# Install with dev tools
pip install -e ".[dev]"
# Install pre-commit hooks (optional)
pre-commit install
# Run tests
pytest tests/
# Run code formatters
black src/ tests/
isort src/ tests/
# Type checking
mypy src/For Phase 1 (gsplat PoC), you can install minimal dependencies:
# Core dependencies only
pip install torch torchvision gsplat numpy matplotlib pyyaml
# Download 1-2 sample objects
python scripts/data_collection/download_assets.py --preset quickError: RuntimeError: CUDA out of memory
Solution:
- Reduce batch size in config
- Use GPU with more VRAM
- Close other GPU applications
# Check GPU memory usage
nvidia-smi
# Kill processes using GPU
sudo fuser -v /dev/nvidia*Error: Failed building wheel for gsplat
Solution:
# Make sure CUDA is in PATH
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
# Reinstall with verbose output
pip install gsplat --verbose
# Or install from source
git clone https://github.com/nerfstudio-project/gsplat.git
cd gsplat
pip install -e .Error: The detected CUDA version (X.X) mismatches the version that was used to compile PyTorch (Y.Y)
Solution:
# Reinstall PyTorch matching your CUDA version
# For CUDA 11.8:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
# For CUDA 12.1:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121Error: Network timeout or slow download
Solution:
# Use resume flag
python scripts/data_collection/download_assets.py --preset recommended --resume
# Or download manually (see ASSET_ACQUISITION.md)Error: ModuleNotFoundError: No module named 'mugs'
Solution:
# Make sure you're in the venv
source venv/bin/activate
# Reinstall in editable mode
pip install -e .
# Verify PYTHONPATH
python -c "import sys; print('\n'.join(sys.path))"To completely remove MuGS:
# Deactivate virtual environment
deactivate
# Remove virtual environment
rm -rf venv/
# Remove downloaded assets (optional)
rm -rf assets/ models/
# Remove cache (optional)
rm -rf ~/.cache/mugs/After successful installation:
- ✅ Read Quick Start Guide:
docs/guides/QUICK_START.md - ✅ Run First Example:
python examples/basic/render_single_view.py - ✅ Check TODO.md: See current phase tasks
- ✅ Start Phase 1: Begin gsplat PoC implementation
- Technical Design:
docs/design/TECHNICAL_DESIGN.md - Asset Guide:
docs/guides/ASSET_ACQUISITION.md - Project Overview:
PROJECT_OVERVIEW.md - API Documentation: Coming in Phase 2
If you encounter issues:
- Check this troubleshooting section
- Search existing issues in Git repository (when public)
- Consult
.context/MEMORY.mdfor project-specific context - Check metamemory:
mm search "MuGS installation"
Last Updated: 2026-05-02
Tested On: Ubuntu 22.04, CUDA 12.1, Python 3.10