RepositoryPythonUSHoa Kỳ
caiyuanhao1998

caiyuanhao1998/HDR-GS

"HDR-GS: Efficient High Dynamic Range Novel View Synthesis at 1000x Speed via Gaussian Splatting" (NeurIPS 2024)

383sao
16fork
0issue
0lượt xem

 

arXiv Video 知乎 HF Data HF Model AK MrNeRF Project Page Online Demo

HDR-GS: Efficient High Dynamic Range Novel View Synthesis at 1000x Speed via Gaussian Splatting

Scene BathroomScene ChairScene Dog
Scene BearScene DeskScene Sponza

 

Introduction

This is the official implementation of our NeurIPS 2024 paper "HDR-GS: Efficient High Dynamic Range Novel View Synthesis at 1000x Speed via Gaussian Splatting". We have run the SfM algorithm to recalibrate the data. If you find this repo useful, please give it a star ⭐ and consider citing our paper. Thank you.

News

  • 2026.11.18 · We released the online Gradio demo for LDR/HDR novel-view synthesis and interactive Gaussian point clouds.
  • 2026.11.15 : We have built the project page with novel-view reconstruction videos and interactive Gaussian point clouds. 🚀
  • 2026.11.08 : We have released our dataset and models on HuggingFace 🤗
  • 2024.12.01 : We provide code for direct loading model to test and render spiral demo video. Welcome to have a try! 🤗
  • 2024.11.30 : We set up a leaderboard on the paper-with-code website! Welcome to submit your entry! 🏆
  • 2024.11.26 : Code, recalibrated data following the opencv standard, and training logs have been released. Feel free to check and have a try! 🤗
  • 2024.07.01 : Our HDR-GS has been accepted by NeurIPS 2024! Code will be released before the start date of the conference (2024.12.10). Stay tuned. 🚀
  • 2024.05.24 : Our paper is on arxiv now. Code, data, and training logs will be released. Stay tuned. 💫

Performance

Synthetic Datasets

results1

results2

Real Datasets

results1

results2

 

Interactive Results

Scene BathroomScene ChairScene Diningroom
Scene DogScene SofaScene Sponza

 

1. Create Environment

We recommend using Conda to set up the environment.

git clone https://github.com/caiyuanhao1998/HDR-GS --recursive
cd HDR-GS
conda env create --file environment.yml
conda activate hdr_gs

A CUDA development toolkit (nvcc) and a compatible C++ compiler are required to build the two CUDA extensions. The Conda cudatoolkit package supplies runtime libraries, not nvcc. The configuration below has been tested with CUDA 11.8 and GCC 11 on Linux.

On Linux with a newer system compiler (for example GCC 12 or 13), install a compatible compiler before building:

conda install -c conda-forge gcc_linux-64=11 gxx_linux-64=11 libxcrypt
conda deactivate
conda activate hdr_gs
export CPATH="${CONDA_PREFIX}/include${CPATH:+:${CPATH}}"

Copy these commands as written; no variable needs to be filled in manually. conda activate sets CONDA_PREFIX to the active environment directory. The last command adds that environment's include/ directory to the compiler's header search path. ${CPATH:+:${CPATH}} appends a colon and the existing CPATH value only when it is nonempty.

Then build the extensions in the activated environment, after PyTorch is installed:

python -m pip install --no-build-isolation ./submodules/diff-gaussian-rasterization ./submodules/simple-knn
python -c "import torch, diff_gaussian_rasterization, simple_knn._C; print(torch.__version__, torch.cuda.is_available())"

For Windows, use a CUDA-compatible Visual Studio build environment and run set DISTUTILS_USE_SDK=1 in Command Prompt before the extension installation command. The Linux compiler command above is not needed on Windows.

Install all Gradio demo dependencies here in the Python 3.11 UI environment.

conda create -n hdr_gs_demo python=3.11 pip -y
conda run -n hdr_gs_demo python -m pip install -r demo/requirements.txt

Keep hdr_gs active for Section 3. The Gradio UI runs in hdr_gs_demo and calls the CUDA renderer in hdr_gs; CONDA_PREFIX is filled automatically by Conda. Camera formats and render options are documented in the rendering guide.

 

2. Prepare Dataset

Download our recalibrated and reorganized datasets from Google Drive or Baidu Disk (code: cyh2). Put the downloaded datasets into data_hdr/.

Alternatively, download the data from HF Data using Git LFS. With Git LFS installed, run these commands from the project root:

git lfs install
git clone https://huggingface.co/datasets/CaiYuanhao/HDR-GS data_hdr

This downloads synthetic/ and real/ directly into data_hdr/, with the following layout:

  |--data_hdr
    |--synthetic
      |--bathroom
        |--exr
          |--0.exr
          |--1.exr
          ...
        |--images
          |--0_0.png
          |--0_1.png
          ...
        |--sparse
          |--0
            |--cameras.bin
            |--images.bin
            |--points3D.bin
            |--points3D.ply  
            |--project.ini
      |--bear
      ...
    |--real
      |--flower
        |--input_images
          |--000_0.jpg
          |--000_1.jpg
          ...
        |--poses_bounds_exps.npy
        |--sparse
          |--0
            |--cameras.bin
            |--images.bin
            |--points3D.bin
            |--points3D.ply  
            |--project.ini
      |--computer
      ...

Note: The original datasets are collected by HDR-NeRF. But the camera poses follow the normalized device coordinates, which are not suitable for 3DGS. Besides, HDR-NeRF does not provide the initial point clouds. So we use the Structure-from-Motion algorithm to recalibrate the camera poses and generate the initial point clouds. We also organize the datasets according to the description of HDR-NeRF, which is different from its official repo.

 

The refinement guide shows how to reproduce the selected weights using one training command and a scene YAML.

Precomputed videos, interactive Gaussian previews, camera paths and HDR samples are organized in the dataset’s visualizations folder.

3. Testing

Download the pretrained checkpoints for all 12 scenes to pretrained_weights/ from Hugging Face Model. Run this command from the repository root with Git LFS enabled.

git clone https://huggingface.co/CaiYuanhao/HDR-GS pretrained_weights

Each scene has a point_cloud.ply and its matching tone_mapper.pth. Bathroom and Sofa are under bathroom/ and sofa_2/. The remaining checkpoints are grouped under refined-2026-11-18/synthetic/ and refined-2026-11-18/real/.

Gradio demo

Explore paired LDR/HDR videos and Gaussian point clouds for all 12 scenes in the online demo. To launch locally, keep the hdr_gs Conda environment active after Section 1.

HDR-GS Gradio demo with paired videos and interactive Gaussian point clouds

conda run --no-capture-output -n hdr_gs_demo python demo/app.py --renderer-python "$CONDA_PREFIX/bin/python" --models-root pretrained_weights --gpu-id 0 --port 7876

LDR rendering

python render_ldr.py --scene bathroom --model_path pretrained_weights/bathroom --output output/videos/bathroom --gpu_id 0
python render_ldr.py --scene bathroom --model_path pretrained_weights/bathroom --output output/videos/bathroom_fixed --gpu_id 0 --brightness 0.35

HDR rendering

python render_hdr.py --scene bathroom --model_path pretrained_weights/bathroom --output output/videos/bathroom --gpu_id 0

Evaluation

Download the scene data in Section 2, then use the matching evaluation command.

# For synthetic scenes
python3 train_synthetic.py --config config/bathroom.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/bathroom --test_only
python3 train_synthetic.py --config config/bear.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/refined-2026-11-18/synthetic/bear --test_only
python3 train_synthetic.py --config config/chair.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/refined-2026-11-18/synthetic/chair --test_only
python3 train_synthetic.py --config config/desk.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/refined-2026-11-18/synthetic/desk --test_only
python3 train_synthetic.py --config config/diningroom.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/refined-2026-11-18/synthetic/diningroom --test_only
python3 train_synthetic.py --config config/dog.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/refined-2026-11-18/synthetic/dog --test_only
python3 train_synthetic.py --config config/sofa.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/sofa_2 --test_only
python3 train_synthetic.py --config config/sponza.yaml --eval --gpu_id 0 --syn --load_path pretrained_weights/refined-2026-11-18/synthetic/sponza --test_only
# For real scenes
python3 train_real.py --config config/flower.yaml --eval --gpu_id 0 --load_path pretrained_weights/refined-2026-11-18/real/flower --test_only
python3 train_real.py --config config/computer.yaml --eval --gpu_id 0 --load_path pretrained_weights/refined-2026-11-18/real/computer --test_only
python3 train_real.py --config config/box.yaml --eval --gpu_id 0 --load_path pretrained_weights/refined-2026-11-18/real/box --test_only
python3 train_real.py --config config/luckycat.yaml --eval --gpu_id 0 --load_path pretrained_weights/refined-2026-11-18/real/luckycat --test_only

Besides, if you train a model with config: bathroom.yaml, you will get a profile as:

  |--output
    |--mlp
      |--bathroom
        |--exp-time
          |--point_cloud
            |interation_x
              |--point_cloud.ply
              |--tone_mapper.pth
            ...
          |--test_set_vis
          |--videos
          |--cameras.json
          |--cfg_args
          |--input.ply
          |--log.txt

Then the --load_path should be "output/mlp/bathroom/exp-time/point_cloud/interation_x"

Testing also saves render_*_hdr_preview.png beside the original HDR EXR files, so ordinary image viewers can display the results. Training losses and evaluation metrics retain the original pipeline.

References: OpenCV HDR imaging, Reinhard et al., Photographic Tone Reproduction for Digital Images.

4. Training

We provide training logs for your convenience to debug. Please download them from the Google Drive or Baidu Disk (code: cyh2).

You can run the .sh file by

# For synthetic scenes
bash train_synthetic.sh

# for real scenes
bash train_real.sh

Set GPU_ID to select a different GPU for either batch script, for example GPU_ID=1 bash train_real.sh. Extra command-line options are forwarded to each scene. Explicit command-line options override the YAML configuration.

Or you can directly train on specific scenes as

# For synthetic scenes
python3 train_synthetic.py --config config/sponza.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/sofa.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/bear.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/chair.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/desk.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/diningroom.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/dog.yaml --eval --gpu_id 0 --syn

python3 train_synthetic.py --config config/bathroom.yaml --eval --gpu_id 0 --syn

# for real scenes
python3 train_real.py --config config/flower.yaml --eval --gpu_id 0

python3 train_real.py --config config/computer.yaml --eval --gpu_id 0

python3 train_real.py --config config/box.yaml --eval --gpu_id 0

python3 train_real.py --config config/luckycat.yaml --eval --gpu_id 0

To save a resumable checkpoint and continue training later:

python3 train_synthetic.py --config config/bathroom.yaml --eval --gpu_id 0 --syn --checkpoint_iterations 1000 --model_path output/bathroom
python3 train_synthetic.py --config config/bathroom.yaml --eval --gpu_id 0 --syn --start_checkpoint output/bathroom/chkpnt1000.pth --model_path output/bathroom-resumed

New checkpoints include the learned RGB tone mappers and optimizer state. Use --test_only --start_checkpoint path/to/chkpnt1000.pth to evaluate a new checkpoint directly. Legacy checkpoints need --load_path pointing to the matching saved scene model because they do not contain tone-mapper weights.

Run the regression checks in the activated environment with python -m unittest discover -s tests -v. The checkpoint tests require a CUDA GPU and the compiled extensions.

 

5. Citation

@inproceedings{hdr_gs,
  title={HDR-GS: Efficient High Dynamic Range Novel View Synthesis at 1000x Speed via Gaussian Splatting},
  author={Yuanhao Cai and Zihao Xiao and Yixun Liang and Minghan Qin and Yulun Zhang and Xiaokang Yang and Yaoyao Liu and Alan Yuille},
  booktitle={NeurIPS},
  year={2024}
}

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
nerfstudio-project/nerfstudio

A collaboration friendly studio for NeRFs

12.3k
Jul 29, 2025
RepositoryPython
MrNeRF/awesome-3D-gaussian-splatting

Curated list of papers and resources focused on 3D Gaussian Splatting, intended to keep pace with the anticipated surge of research in the coming months.

9.0k
Nov 30, 2026
RepositoryPython
caiyuanhao1998/SAX-NeRF

"Structure-Aware Sparse-View X-ray 3D Reconstruction" (CVPR 2024) - A Toolbox for CT reconstruction and X-ray Novel View Synthesis

815
Nov 18, 2026
RepositoryPython
boschresearch/3dgeer

[ICLR 2026] The official implementation associated with the paper "3DGEER: 3D Gaussian Rendering Made Exact and Efficient for Generic Cameras"

220
Sep 22, 2026
RepositoryC++
hku-mars/FAST-LIVO2

FAST-LIVO2: Fast, Direct LiDAR-Inertial-Visual Odometry

4.9k
Mar 8, 2026
RepositoryC++
Anttwo/SuGaR

[CVPR 2024] Official PyTorch implementation of SuGaR: Surface-Aligned Gaussian Splatting for Efficient 3D Mesh Reconstruction and High-Quality Mesh Rendering

3.6k
Sep 24, 2024
RepositoryC++
harry7557558/spirula-studio

Cross-vendor 3D Gaussian Splatting trainer - video to splat to mesh, Vulkan or CUDA.

2.7k
Dec 2, 2026
RepositoryJupyter Notebook
GAP-LAB-CUHK-SZ/gaustudio

A Modular Framework for 3D Gaussian Splatting and Beyond

1.8k
Nov 5, 2025
RepositoryC++
shg8/3DGS.cpp

A cross-platform, high performance renderer for Gaussian Splatting using Vulkan Compute. Supports Windows, Linux, macOS, iOS, and visionOS

791
May 19, 2025