SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging

Lingtong Kong, Bo Li, Yike Xiong, Hao Zhang, Hong Gu +1 more
2/14/2026

No official code found. Best implementation: ltkong218/SAFNet (46 stars, PyTorch, last commit 2024-10-23).

Abstract

Multi-exposure High Dynamic Range (HDR) imaging is a challenging task when facing truncated texture and complex motion. Existing deep learning-based methods have achieved great success by either following the alignment and fusion pipeline or utilizing attention mechanism. However, the large computation cost and inference delay hinder them from deploying on resource limited devices. In this paper, to achieve better efficiency, a novel Selective Alignment Fusion Network (SAFNet) for HDR imaging is proposed. After extracting pyramid features, it jointly refines valuable area masks and cross-exposure motion in selected regions with shared decoders, and then fuses high quality HDR image in an explicit way. This approach can focus the model on finding valuable regions while estimating their easily detectable and meaningful motion. For further detail enhancement, a lightweight refine module is introduced which enjoys privileges from previous optical flow, selection masks and initial prediction. Moreover, to facilitate learning on samples with large motion, a new window partition cropping method is presented during training. Experiments on public and newly developed challenging datasets show that proposed SAFNet not only exceeds previous SOTA competitors quantitatively and qualitatively, but also runs order of magnitude faster. Code and dataset is available at https://github.com/ltkong218/SAFNet.

View on arXivView PDF

Code Implementations(1)

ltkong218/SAFNetCommunity100%
PyTorch

SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging (ECCV 2024)

464MATLAB, PythonJul 3, 20241 years ago
cameracomputational-photographyhdrispmobile-phone+6 more

Similar Papers

Cite this paper

@article{kong2026safnet,
  title  = {SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging},
  author = {Lingtong Kong and Bo Li and Yike Xiong and Hao Zhang and Hong Gu and Jinwei Chen},
  year   = {2026},
  eprint = {2407.16308},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.16308},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.16308.svg)](https://codeofpaper.com/paper/2407.16308)

Discussion