Skip to content

JuliaNeuralGraphics/GaussianSplatting.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GaussianSplatting.jl

3D Gaussian Splatting for Real-Time Radiance Field Rendering in Julia

bicycle.mp4

Requirements

  • Julia 1.10.
  • AMD GPU (ROCm) or Nvidia (CUDA) capable machine.

Features

fused=true fused=false
RGB + +
Depth rendering + +
Differentiable depth - +
Differentiable camera pose in-progress in-progress
Antialiasing - +

FYI

  • Because Julia is JIT-compiled, first iteration will take longer because of kernels compilation. In GUI you may even see that an application is unresponsive, so you should just wait a bit.
  • Julia relies on GC that is not GPU-aware, excessive allocations will impact the performance. To free GPU arrays we have to perform GC-sweep (in contrast to refcounting in Python) which is significantly slower. Because of that, you'll see significantly higher memory usage (compared to Python), but that is because of delayed freeing, not because the algorithm requires more memory.

Usage

  1. Install GaussianSplatting.jl package:
] add https://github.com/JuliaNeuralGraphics/GaussianSplatting.jl.git
  • AMD GPU:
  1. Add necessary packages: ] add AMDGPU

  2. Run:

julia> using AMDGPU, GaussianSplatting

julia> GaussianSplatting.gui("path-to-colmap-dataset-directory"; scale=1)
  • Nvidia GPU:
  1. Add necessary packages: ] add CUDA, cuDNN

  2. Run:

julia> using CUDA, cuDNN, GaussianSplatting

julia> GaussianSplatting.gui("path-to-colmap-dataset-directory"; scale=1)

GPU selection

  • AMD GPU:

    julia> using Flux
    
    julia> Flux.gpu_backend!("AMDGPU")
  • Nvidia GPU:

    julia> using Flux
    
    julia> Flux.gpu_backend!("CUDA")

Datasets

Download one of the reference datasets from the MIP-NeRF-360: https://jonbarron.info/mipnerf360/