TSGF-GAN
A GAN generator that fuses two differently focused images through a self-guided, filter-refined focus map.
Diffusion and generative · 238 operations Checked
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
- 12.2M
- Operations
- 238
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023, IEEE Access
- Cited by
- 7 (as of 28 October 2026)
- Authors
- Levent Karacan
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20855
- Graph hash
- 8a46dd5eb5378063c09a6efc8d42aa797ce7d4faf8b5b697993a70de78ac2678
- Skeleton hash
- 208b4a2a0abe56ec9ee6e20ddfe9b6b5d5cb8c0037cee8337d8092bbbc968c29
- Architecture hash
- 6255649ee95b3532647a84687a6dee4f46eaedea36851d6993207af6a0c8bc32
- Diagram SHA-256
- 788a6a2707d9a52e4a28ea64798703399414c3a082d383e4fba2a89084f95a84
- 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
TSGF-GAN is a GAN-based model for multi-focus image fusion (MFIF) that uses a trainable guided filter to predict more accurate focus maps. The task is to fuse multiple images, each focused on a different region, into a single all-in-focus image.
A shared encoder passes the two input images through three convolution blocks and nine ResNet blocks. The decoder generates an intermediate focus map from the concatenation of those features. The trainable self-guided filter (TSGF) then refines that map, using the model's own intermediate output as guidance where earlier trainable guided filters used the input images. The filter is meant to make the focus map spatially consistent and to remove the post-processing that existing GAN-based methods required. At test time the output focus map is thresholded at 0.5 and used to fuse the two input images.
Training uses an L1 loss on the focus maps, and a GAN loss and a Focal Frequency Loss on the fused images. The discriminator is no longer used at test time. The paper reports that the model outperforms the existing GAN-based methods on three MFIF benchmark datasets in standard fusion metrics and visual quality. The training data is generated from the Pascal VOC12 dataset, following MFIF-GAN.
Key idea. The paper adds a trainable self-guided filter after an encoder-decoder generator so that focus maps for multi-focus image fusion come out spatially consistent without separate post-processing.
- TSGF-GAN
- trainable self-guided filter
- TSGF
- multi-focus image fusion
- MFIF
- guided filter
- focus map
- all-in-focus image
- image fusion GAN
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Karacan_2023, title={Trainable Self-Guided Filter for Multi-Focus Image Fusion}, volume={11}, ISSN={2169-3536}, url={http://dx.doi.org/10.1109/ACCESS.2023.3335307}, DOI={10.1109/access.2023.3335307}, journal={IEEE Access}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Karacan, Levent}, year={2023}, pages={139466–139477} }