Papers › SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging

SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging

23 Jul 2024arXiv:2407.16308archive 2025-07-28

Lingtong Kong, Bo Li, Yike Xiong, Hao Zhang, Hong Gu, Jinwei Chen

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.16308")

Code

Syntology Ran 14 of 17 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 7 ran · our draft was wrong; 1 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ltkong218/safnet officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 14 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran · our draft was wrong
1ran · fixture could not drive it
6ran
3unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ltkong218/SAFNet. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Encoder ltkong218/SAFNet/models/SAFNet.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 526a08dea587b0f9 · report
RefineNet ltkong218/SAFNet/models/SAFNet.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · bf675e7fb0a9f61c · report
ResBlock ltkong218/SAFNet/models/SAFNet.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · c3f4d7b585938d35 · report
channel_shuffle ltkong218/SAFNet/models/SAFNet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · cdcf7fd9884d712b · report
convrelu ltkong218/safnet/models/SAFNet.py official repository ran · our draft was wrong no licence file found · pointer only · 1a30c25d56937bad · report
deconv ltkong218/SAFNet/models/SAFNet.py official repository ran no licence file found · pointer only · 1cea7934f596790b · report
merge_hdr ltkong218/SAFNet/models/SAFNet.py official repository ran · our draft was wrong no licence file found · pointer only · 16e26a9c44539572 · report
read_expos ltkong218/safnet/datasets.py official repository ran no licence file found · pointer only · 85874809cf85c428 · report
read_ldr ltkong218/safnet/datasets.py official repository ran no licence file found · pointer only · 2cc097fc1e814937 · report
resize ltkong218/SAFNet/models/SAFNet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · b44a1e73d2f3547f · report
warp ltkong218/safnet/utils.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · a4d5c37ca03cf29f · report
weight_3expo_high_tog17 ltkong218/SAFNet/models/SAFNet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 3f38af8e9abcc9d3 · report
weight_3expo_low_tog17 ltkong218/SAFNet/models/SAFNet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 8d6f40f73b25f251 · report
weight_3expo_mid_tog17 ltkong218/SAFNet/models/SAFNet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · c39e0b2a9f1e3d59 · report
Decoder ltkong218/SAFNet/models/SAFNet.py official repository unverified no licence file found · pointer only · 6cc52ba724aaaaf2 · report
SAFNet ltkong218/SAFNet/models/SAFNet.py official repository unverified no licence file found · pointer only · 929bc378e8866c39 · report
read_hdr ltkong218/safnet/datasets.py official repository unverified no licence file found · pointer only · 5b156f6ddc69668b · report

Tasks

Optical Flow Estimation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionFocusSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections