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)
  • (Optional) cuML for faster vector quantization

(Optional) If you have trouble with gaussian-splatting and reduced-3dgs, try to install it from source:

pip install wheel setuptools
pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master --no-build-isolation
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main --no-build-isolation

PyPI Install

pip install --upgrade gaussian-splatting-mcmc

or build latest from source:

pip install wheel setuptools
pip install --upgrade git+https://github.com/yindaheng98/3dgs-mcmc.git@main --no-build-isolation

Development Install

git clone --recursive https://github.com/yindaheng98/reduced-3dgs
cd 3dgs-mcmc
pip install --target . --upgrade --no-deps .

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.2.1.tar.gz (14.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.2.1-cp312-cp312-win_amd64.whl (123.0 kB view details)

Uploaded CPython 3.12Windows x86-64

gaussian_splatting_mcmc-1.2.1-cp311-cp311-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.11Windows x86-64

gaussian_splatting_mcmc-1.2.1-cp310-cp310-win_amd64.whl (121.1 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for gaussian_splatting_mcmc-1.2.1.tar.gz
Algorithm Hash digest
SHA256 dcb52325bcb66d9b43997111d0c2e38d7d83fa4ea581d97eda6d4339f1d4193d
MD5 b1a5d5b8f2649e0e10b33e1aaed5b383
BLAKE2b-256 6b12601d4a9b99ea4df23f63300a982745ab89a51066b02eee308fc5f6b6d350

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e7474eb8cc94dab7a2f39c6c33ef22678dc2a332c1a56bb54424759d847f206e
MD5 fc708d699a549f31b2bb634b7869cef1
BLAKE2b-256 51257be4d8bdbe81f2a3ca55892cf165a2afe0c9266ff6ef2a937fe3fb464ee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f6360e950f640e619e4cece8a0c69c8dfc7bc3971988b4dad981ee1ec312e3f
MD5 2ccd5ca15b32e8fbe6427c36c1030709
BLAKE2b-256 401e5a17fd7a69e607aa908009c903ed95c1d3f9d2dd7d8823c229ad31160b97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gaussian_splatting_mcmc-1.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 646eadaa4ded5cbf34ceffae54b7a3463750182204cc368032fd613ce853d4b3
MD5 1fcc3592c8b116f230d364150ec8762c
BLAKE2b-256 049471dbb87059c59b3b5d517d9c086ba6987c63ef934ff93d8c063cdbe048da

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