Giter Site home page Giter Site logo

easygaussiansplatting's Introduction

Easy Gaussian Splatting

What is this?

For learning purposes, we offer an unofficial implementation of 3D Gaussian Splatting for Real-Time Radiance Field Rendering. Additionally, we provide a set of tools and documentation to facilitate the study of 3D Gaussian Splatting.

Why this name?

We want our implementation to be easy to use, the code to be easy to read, and the documentation to be easy to understand. Therefore, we named our project "EasyGaussianSplatting".

Overview

  • Based on our documentation, re-implement 3D Gaussian Splatting.

    • Forward on CPU
    • Forward on GPU
    • Backward on CPU
    • Backward on GPU
    • Full training implemention.
  • Provide tools for learning 3D Gaussian Splatting.

    • A efficient viewer based on pyqtgraph for showing 3D Gaussian data (trained model).
    • A demo showing how spherical harmonics work.
    • Verify all computation processes of backward using numerical differentiation.

Requirements

pip3 install -r requirements.txt
pip3 install gsplatcu/.

Rendering

Given camera information, render 3D Gaussian data onto the 2D image.

The TRAINED_FILE is the .ply file generated by the official Gaussian Splatting, or the .npy file generated by our train.py.

CPU version

python3 forward_cpu.py --gs='THE_PATH_OF_YOUR_TRAINED_FILE'

GPU version.

python3 forward_gpu.py --gs='THE_PATH_OF_YOUR_TRAINED_FILE'

forward demo

Training

Download the T&T+DB COLMAP datasets. T&T+DB COLMAP (650MB)

python3 train.py --path='THE_PATH_OF_UNZIPPED_DATASET'

(The Adaptive Density Control has not been implemented yet.)

3D Gaussian Viewer

A efficient 3D Gaussian splatting viewer for showing 3D Gaussian data.

python3 gaussian_viewer.py --gs='THE_PATH_OF_YOUR_TRAINED_PLY_OR_NPY_FILE'

Spherical harmonics demo

A demo showing how spherical harmonics work.

python3 sh_demo.py

sh demo "The ground truth Earth image is modified from URL. By Solar System Scope. Licensed under CC-BY-4.0"

Verify the backward process

Verify all computation processes of backward using numerical differentiation.

python3 backward_cpu.py
python3 backward_gpu.py

easygaussiansplatting's People

Contributors

scomup avatar yudai09 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.