All models

Dif-Fusion

A diffusion-based network that fuses an infrared and a visible image into one color image.

Diffusion and generative · 1,542 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (41 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
416.5M
Operations
1,542
Framework
PyTorch
Recurrent
No
Published
2023
Cited by
11 (as of 27 October 2026)
Authors
Jun Yue, Leyuan Fang, Shaobo Xia and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16088
Graph hash
b3a72d2c1754c6ca22efa902309d95c8ba19fe216cfa34f474567a3facab40dc
Skeleton hash
c93583446480b686ecdfc92d47f00f22b5889ed6c07726d236caf9dad8930d21
Architecture hash
dcd5eb16ad66a283d15f6b6ec4a132816b63e91210c8d17f35964386c5444c5c
Diagram SHA-256
94d2bc9cf0604a134b7d7258c469bd6dcf2e8a9a857c20c0c0f942d085680e9f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Dif-Fusion fuses an infrared image and a visible color image into a single color image, with the aim of keeping the colors faithful. The paper starts from the observation that existing infrared and visible fusion methods rarely handle multi-channel data directly. Instead of converting the color image to a single channel, a denoising network learns the joint structure of the two inputs by modeling the diffusion of 4-channel images.

The denoising network adopts the U-Net structure used in SR3: a contracting path, an expansive path and a diffusion head. Once trained, it serves as a feature extractor: the features from the five expansive layers are added up and fed to a fusion head that generates the fused image. The features are taken at three diffusion time-steps, for example 5, 50 and 100. The fusion stage is trained with a multi-channel gradient loss and a multi-channel intensity loss, which the paper says lets the three-channel fused image be generated without a color space transformation.

To measure color fidelity the authors add Delta E, a color difference index built in CIELAB space, to the usual fusion metrics. The evaluation uses color and infrared image pairs from the MSRS, RoadSence and M3FD datasets. The work appeared in IEEE Transactions on Image Processing in 2023.

Key idea. Dif-Fusion trains a diffusion model on four-channel visible and infrared data and feeds its multi-channel features to a fusion module that directly generates the three-channel fused image.

  • Dif-Fusion
  • infrared and visible image fusion
  • image fusion
  • diffusion model
  • color fidelity
  • multi-channel diffusion features
  • infrared

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{yue2023diffusionhighcolorfidelity,
      title={Dif-Fusion: Towards High Color Fidelity in Infrared and Visible Image Fusion with Diffusion Models}, 
      author={Jun Yue and Leyuan Fang and Shaobo Xia and Yue Deng and Jiayi Ma},
      year={2023},
      eprint={2301.08072},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2301.08072}, 
}