cd /news/computer-vision/mojosplat-3d-gaussian-splatting-trai… · home › topics › computer-vision › article
[ARTICLE · art-181832] src=github.com ↗ pub= topic=computer-vision verified=true sentiment=↑ positive

MojoSplat: 3D Gaussian Splatting, training and rendering, written in Mojo

MojoSplat, a 3D Gaussian Splatting training and rendering implementation written entirely in Mojo by developer bertaveira, trains the Mip-NeRF360 garden scene in 3m19s on an RTX 5090, slightly faster than the CUDA-based Faster-GS at 3m48s while matching its quality (PSNR 27.45 vs 27.44, SSIM 0.866, LPIPS 0.122). The codebase replaces Python-orchestrated CUDA kernels with a single language spanning the COLMAP loader to GPU kernels, runs on NVIDIA, AMD and Apple GPUs, and reports rendering and training steps about 2× faster than gsplat, with images and gradients matching a float64 reference to about 1e-6. PyTorch bindings with autograd provide a drop-in rasterizer, and the project installs via pixi with no CUDA toolkit, compiler or Python required.

key takeaway

MojoSplat trains Mip-NeRF360 garden in 3m19s on an RTX 5090 versus 3m48s for Faster-GS at equal quality (PSNR 27.45 vs 27.44), and its PyTorch autograd bindings let existing 3DGS training code swap in the rasterizer.

read5 min views3 publishedDec 4, 2026
MojoSplat: 3D Gaussian Splatting, training and rendering, written in Mojo
Image: Michielbdejong (auto-discovered)

3D Gaussian Splatting, training and rendering, written entirely in Mojo. No Python, no CUDA C++: one language from the COLMAP to the GPU kernels.

training.mp4 #

Gaussian Splatting codebases are usually Python orchestrating hand-written CUDA kernels, tied to NVIDIA GPUs. Mojo promises CUDA-level performance in a single, Python-like language that also targets AMD and Apple GPUs. MojoSplat is a full, fast 3DGS implementation built to test that promise.

  • Train a scene with one command. COLMAP dataset in,.ply out (the standard 3DGS format).
  • Fast. Matches the quality ofFaster-GS , a state-of-the-art CUDA implementation, and trains slightly faster: Mip-NeRF360 garden in under 3½ minutes on an RTX 5090. Rendering and a training step are about 2× faster than gsplat.
  • Faithful. Images and gradients match a float64 reference implementation to about 1e-6.
  • Usable from PyTorch. Bindings with autograd provide a fast drop-in rasterizer for existing training code.

Documentation: bertaveira.github.io/mojosplat has a quickstart, an illustrated walkthrough of the renderer, and how to add a method.

All you need is pixi and an NVIDIA GPU, AMD GPU, or an Apple silicon Mac. No CUDA toolkit, compiler or Python needed: pixi installs Mojo into the project folder on the first run. Just clone this repository git clone https://github.com/bertaveira/mojosplat.git and you're ready to go.

pixi run train path/to/scene --viewer        # watch it train at http://localhost:8080

You can evaluate, view, and render the trained scene with the following commands:

pixi run eval path/to/scene output/scene/point_cloud.ply
pixi run view output/scene/point_cloud.ply
pixi run render output/scene/point_cloud.ply -o render.png   # also renders .splat files

A scene is a COLMAP folder with sparse/0/ and images_4/, e.g. from Mip-NeRF360. Every hyperparameter is a flag: pixi run train --help.

On a Mac, Mojo compiles kernels with Xcode's Metal toolchain: check it with xcrun metal --version and, if it is missing, install it with xcodebuild -downloadComponent MetalToolchain.

Mip-NeRF360 garden (images_4, 30k iterations). The last four columns are training time per GPU. PSNR, SSIM and LPIPS are from the RTX 5090 runs; PSNR on the RTX 3080 and Apple M1 Pro lands within 0.1 dB. Faster-GS was run from its official code on the same RTX 5090 and scored with the same metric code.

PSNR SSIM LPIPS Gaussians RTX 5090 RTX 3080 (10 GB) Apple M4 Max Apple M1 Pro
MojoSplat 27.45 0.866 0.122 4.2M 3m19s ~10m30s 16m06s 1h03m
Faster-GS (CUDA + PyTorch) 27.44 0.866 0.121 4.1M 3m48s — — —
3DGS (published) 27.41 0.868 —* ~5.8M — — — —
  • The 3DGS paper's LPIPS (0.103) is not comparable: its evaluation code passes images in [0, 1] to an LPIPS network that expects [-1, 1], which lowers the score. The other rows use LPIPS-VGG on correctly scaled images.

Each method, selected with --method, is also trained with its official code on seven Mip-NeRF 360 scenes, on the same RTX 5090, and scored the same way. The table gives MojoSplat's mean training time per scene and rendering speed, with the speedup over the official code in brackets (below 1× is slower). Per-scene quality, timings and open differences are in the full results.

Method --method Training time per scene Rendering
Faster-GS faster-gs (default) 2m24s (1.13×) 1119 FPS (0.88×)
Beta Splatting beta-splatting 3m31s (3.90×) 489 FPS (4.58×)
3DGS-MCMC 3dgs-mcmc 3m19s (7.13×) 682 FPS (2.86×)
Spherical Voronoi spherical-voronoi 3m51s (2.83×) 444 FPS (2.47×)
3DGUT 3dgut 2m29s (3.93×) 1043 FPS (6.74×)

mojosplat is a plain Mojo package (pixi run mojo run -I . my_program.mojo):

from max.gpu.host import DeviceContext
from mojosplat import Camera, Rasterizer, Splats, download, read_ply, write_png

def main() raises:
    var ctx = DeviceContext()
    var splats = Splats.from_host(ctx, read_ply("output/garden/point_cloud.ply"))
    var camera = Camera.translated(0.0, 0.0, 5.0, 1280, 720, 1152.0, 1152.0)
    var image = ctx.enqueue_create_buffer[DType.float32](1280 * 720 * 3)
    var rasterizer = Rasterizer(ctx)
    rasterizer.render(splats, camera, SIMD[DType.float32, 4](0.0), image)
    write_png("out.png", download(ctx, image, 1280 * 720 * 3), 1280, 720)

Training is Trainer(ctx, load_colmap_dataset(ctx, path), TrainConfig()) and trainer.step(); Rasterizer.forward / backward give gradients for any image loss. The design is described in docs/design.md.

Linux only, in a separate pixi environment:

pixi install -e torch && pixi run -e torch build-ext
python
from mojosplat_torch import Camera, render_splats

image = render_splats(means, quats, scales, opacities, sh0, shN, camera)   # (H, W, 3)
image.mean().backward()
  • Validate on AMD GPUs and tune on AMD and Apple GPUs (every kernel already compiles for both; Apple runs).
  • Benchmarks on all Mip-NeRF360, Tanks&Temples and Deep Blending scenes.
  • Anti-aliasing, faster optimizer options, LPIPS in Mojo.

Contributions are welcome; please include tests (pixi run test).

MIT. Ported code from Faster-GS (Apache-2.0), Deformable Beta Splatting (Apache-2.0), 3DGUT (NVIDIA 3dgrut, Apache-2.0), Spherical Voronoi (MIT), NeRFICG (MIT) and fused-ssim (MIT) is listed in THIRD_PARTY_NOTICES.md. MAX is installed by pixi under Modular's MAX License.

MojoSplat's rasterizer and training recipe are a Mojo port of Faster-GS (code) by Florian Hahlbohm, Linus Franke, Martin Eisemann and Marcus Magnor. If you use MojoSplat, please cite their work:

@inproceedings{hahlbohm2026fastergs,
  title     = {Faster-GS: Analyzing and Improving Gaussian Splatting Optimization},
  author    = {Hahlbohm, Florian and Franke, Linus and Eisemann, Martin and Magnor, Marcus},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  year      = {2026}
}

Also thanks to 3D Gaussian Splatting, Taming 3DGS, StopThePop, Splatshop, fused-ssim, gsplat (our reference implementation) and Modular.

── more in #computer-vision 4 stories · sorted by recency
── more on @mojosplat 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mojosplat-3d-gaussia…] indexed:0 read:5min 2026-12-04 · —