Yixin Yang, Jiawei Zhang, Yang Zhang, Yunxuan Wei, Dongqing Zou, Jimmy Ren, and Boxin Shi.
- Python 3.10
- CUDA-compatible GPU
conda create -n hdrev-diffu python=3.10
conda activate hdrev-diffupip3 install torch torchvision torchaudiopip install lpips wandb diffusers omegaconf transformers opencv-python h5py hdf5plugin matlablibPlease downloading our training dataset (https://www.modelscope.cn/datasets/Mcallor/HDR-EVS/) and specify the dataroot in configuration file.
python train.py \
--name "experiment_name" \
--config "config/Train_stage1+2.yaml" \Inference sampling results without refinement(change the dataroot in config file to match the training data):
python test.py \
--exp_name "test_experiment" \
--config "config/Test.yaml" \
--pretrained_unet "path/to/trained/model.ckpt" \
--saveStart training based on the saved latents (change the dataroot in config file to match the saved latents):
python train_upsampler.py \
--name "upsampler_experiment" \
--config "config/Train_upsampler.yaml" \
--pretrained_unet "path/to/trained/model.ckpt" \Download checkpoint: GoogleDrive
python test.py \
--exp_name "test_experiment" \
--config "config/Test.yaml" \
--pretrained_unet "path/to/trained/model.ckpt" \
--pretrained_upsample "path/to/trained/upsampler.ckpt" \output_dir: Output directorypretrained_model_path: Path to pre-trained Stable Diffusion modelpretrained_controlnet_model_path: Path to pre-trained ControlNet modelconditioning_channels: Conditioning channel configurationlearning_rate: Learning ratebatch_size: Batch sizemax_train_steps: Maximum training steps
dataset_type: Dataset type (evs_image_h5single)dataroot: Data root directorypatch_size: Image patch sizenum_bins: Number of event time binsevent_representation: Event representation method
Specially designed event data encoder for processing temporal information from event cameras.
ControlNet-based conditional control model supporting multiple input types:
- Event data (evs)
- Low dynamic range images (ldr)
- Event + low dynamic range images (evs+ldr)
Improved autoencoder for image upsampling and detail enhancement.
The project supports HDF5 format datasets containing:
- Event data (pixel_events)
- Low dynamic range images (pixel_images)
- High dynamic range images (target_images)
@inproceedings{yang2025eventguided,
author = {Yang, Yixin and Zhang, Jiawei and Zhang, Yang and Wei, Yunxuan and Zou, Dongqing and Ren, Jimmy and Shi, Boxin},
title = {Event-guided HDR Reconstruction with Diffusion Priors},
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
year = {2025},
}For questions or suggestions, please contact us via:
- Email: yangyixin93@pku.edu.cn