Skip to main content

Refactored python training code for 3D Gaussian Splatting as Markov Chain Monte Carlo

Project description

3D Gaussian Splatting as Markov Chain Monte Carlo (Packaged Python Version)

This repository contains the refactored Python code for 3dgs-mcmc. It is forked from commit 7b4fc9f76a1c7b775f69603cb96e70f80c7e6d13. The original code has been refactored to follow the standard Python package structure, while maintaining the same algorithms as the original version.

Features

  • Code organized as a standard Python package
  • Markov Chain Monte Carlo trainer for 3D Gaussian Splatting
  • Integration with reduced-3dgs

Prerequisites

  • Pytorch (v2.4 or higher recommended)
  • CUDA Toolkit (12.4 recommended, should match with PyTorch version)

Install

PyPI Install

pip install --upgrade gaussian-splatting-mcmc

Install (Development)

Install gaussian-splatting. You can download the wheel from PyPI:

pip install --upgrade gaussian-splatting

Alternatively, install the latest version from the source:

pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master

Install reduced-3dgs. You can download the wheel from PyPI:

pip install --upgrade reduced-3dgs

Alternatively, install the latest version from the source:

pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main

(Optional) If you prefer not to install gaussian-splatting and reduced-3dgs in your environment, you can install them in your lapis-gs directory:

pip install --target . --no-deps --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master
pip install --target . --no-deps --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main

Quick Start

  1. Download dataset (T&T+DB COLMAP dataset, size 650MB):
wget https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/datasets/input/tandt_db.zip -P ./data
unzip data/tandt_db.zip -d data/
  1. Train 3DGS-MCMC:
python -m gaussian_splatting_mcmc.train -s data/truck -d output/truck -i 30000 --mode base
  1. Render:
python -m gaussian_splatting.render -s data/truck -d output/truck -i 30000 --load_camera output/truck/cameras.json

** NeurIPS 2024 SPOTLIGHT **

3D Gaussian Splatting as Markov Chain Monte Carlo

button button button

Shakiba Kheradmand, Daniel Rebain, Gopal Sharma, Weiwei Sun, Yang-Che Tseng, Hossam Isack, Abhishek Kar, Andrea Tagliasacchi, Kwang Moo Yi

BibTeX

@inproceedings{kheradmand20243d,
    title = {3D Gaussian Splatting as Markov Chain Monte Carlo},
    author = {Kheradmand, Shakiba and Rebain, Daniel and Sharma, Gopal and Sun, Weiwei and Tseng, Yang-Che and Isack, Hossam and Kar, Abhishek and Tagliasacchi, Andrea and Yi, Kwang Moo},
    booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
    year = {2024},
    note = {Spotlight Presentation},
   }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaussian_splatting_mcmc-1.1.4.tar.gz (13.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gaussian_splatting_mcmc-1.1.4-cp312-cp312-win_amd64.whl (119.9 kB view details)

Uploaded CPython 3.12Windows x86-64

gaussian_splatting_mcmc-1.1.4-cp311-cp311-win_amd64.whl (119.2 kB view details)

Uploaded CPython 3.11Windows x86-64

gaussian_splatting_mcmc-1.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gaussian_splatting_mcmc-1.1.4-cp310-cp310-win_amd64.whl (118.1 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file gaussian_splatting_mcmc-1.1.4.tar.gz.

File metadata

  • Download URL: gaussian_splatting_mcmc-1.1.4.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for gaussian_splatting_mcmc-1.1.4.tar.gz
Algorithm Hash digest
SHA256 81043242e76a4614857603a3c1343d6a54386b9cb94ce6c23e8575d8339448b9
MD5 f3b9b50900fcc6a542a1d3e4e66c8910
BLAKE2b-256 c38b621a8c659d5a703b70034139e2992ab4e0fc91a3151314c0f22b6cc147c1

See more details on using hashes here.

File details

Details for the file gaussian_splatting_mcmc-1.1.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f06ce96c9032c090d468d2178955909a411d823730a362eaa1df122b123622e7
MD5 ffaebe828850010bb6e76207c798a2d5
BLAKE2b-256 b725cb7a25df95a517141f216bb25af1760e7b8da6b4024402fa1f6a7bd892ad

See more details on using hashes here.

File details

Details for the file gaussian_splatting_mcmc-1.1.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d8432cbaa5fbb3fa7124bbff4506d9431a61e3f6adb0a18c04b63a9ecb5ef3b4
MD5 8a1ae77e2a8946b4f6e22e23a54ab53a
BLAKE2b-256 17624e55ccaf7ea174fd46f8cd673f439ea62facc20d8cdd2200f39aafc36a26

See more details on using hashes here.

File details

Details for the file gaussian_splatting_mcmc-1.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a15c5672aed6a810f9330c5fdc8f5810ebca38eba59998ce170b345c44694d8e
MD5 f359a010b84bca98301d4dc67c9f552d
BLAKE2b-256 e2486ec4b3cc8f3caff02bd425c6167408ca8efd99d79c3e5a7ce10ac05f84ce

See more details on using hashes here.

File details

Details for the file gaussian_splatting_mcmc-1.1.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 62799cb497f8fe526fcc4501bb42e0af9311e3411cfda0ec5d12cece56d9b8f4
MD5 583979cb77da7ef53f9c0a40c9069f2a
BLAKE2b-256 617a8925de71c03f6d5a28fceaf0561ad661f6bce199d535595be7e6f9f2ac6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page