Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
url = https://github.com/pyimgui/pyimgui.git
[submodule "thirdparty/diff-gaussian-rasterization-modified"]
path = thirdparty/diff-gaussian-rasterization-modified
url = https://github.com/dcharatan/diff-gaussian-rasterization-modified.git
url = https://github.com/Looong01/diff-gaussian-rasterization-modified.git
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Splatt3R-SLAM integrates [Splatt3R](https://splatt3r.active.vision) (Zero-shot G

### Prerequisites
- Ubuntu 20.04+ (or WSL2 on Windows)
- NVIDIA GPU with CUDA 11.8+
- NVIDIA GPU with CUDA 11.8+ **or** AMD GPU with ROCm 7.1
- Conda/Miniconda
- Git

Expand All @@ -62,6 +62,9 @@ conda activate splatt3r-slam
```

### Step 3: Install PyTorch
Choose one backend and install the matching PyTorch build.

**CUDA (NVIDIA)**
Check your CUDA version with `nvcc --version`, then install matching PyTorch:
```bash
# For CUDA 11.8
Expand All @@ -74,6 +77,15 @@ conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 pytorch-cuda=
conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 pytorch-cuda=12.4 -c pytorch -c nvidia
```

**ROCm 7.1 (AMD)**
```bash
# Use the ROCm 7.1 wheel index
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.1

# Optional but recommended for deterministic arch targeting
export PYTORCH_ROCM_ARCH="gfx90a;gfx942;gfx1100;gfx1101;gfx1200"
```

### Step 4: Install Dependencies (IN THIS ORDER!)

**4a. Install lietorch FIRST** (critical dependency):
Expand All @@ -84,14 +96,29 @@ pip install git+https://github.com/princeton-vl/lietorch.git
**4b. Install thirdparty dependencies**:
```bash
pip install -e thirdparty/in3d

# diff-gaussian-rasterization-modified (auto-detects CUDA or ROCm)
pip install -e thirdparty/diff-gaussian-rasterization-modified

# Force CUDA or ROCm for diff-gaussian-rasterization-modified:
# DIFFGAUSS_GPU_BACKEND=cuda pip install -e thirdparty/diff-gaussian-rasterization-modified
# DIFFGAUSS_GPU_BACKEND=rocm pip install -e thirdparty/diff-gaussian-rasterization-modified
```

**4c. Install main package**:
```bash
# Auto-detect (default): picks ROCm when PyTorch is ROCm build, otherwise CUDA when available.
pip install --no-build-isolation -e .

# Force CUDA extension build
SPLATT3R_GPU_BACKEND=cuda pip install --no-build-isolation -e .

# Force ROCm extension build (for AMD + ROCm 7.1)
SPLATT3R_GPU_BACKEND=rocm pip install --no-build-isolation -e .
```

If you are on AMD/ROCm, choose `SPLATT3R_GPU_BACKEND=rocm` (or leave default auto-detect with ROCm PyTorch). If you are on NVIDIA/CUDA, choose `SPLATT3R_GPU_BACKEND=cuda`.

**4d. Install Splatt3R-specific dependencies**:
```bash
pip install lightning lpips omegaconf huggingface_hub gitpython einops
Expand Down
Empty file removed mast3r_slam/__init__.py
Empty file.
117 changes: 0 additions & 117 deletions mast3r_slam/backend/include/gn.h

This file was deleted.

123 changes: 0 additions & 123 deletions mast3r_slam/backend/src/gn.cpp

This file was deleted.

Loading