rfrnet_inpainting
Image inpainting network that fills holes from the boundary inward by recurrent reasoning on feature maps.
Diffusion and generative · 51 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
- 137.2K
- Operations
- 51
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- CVPR (arXiv 2020)
- Cited by
- 490 (as of 9 October 2026)
- Authors
- Jingyuan Li, Ning Wang, Lefei Zhang and others
- 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
- m12108
- Graph hash
- 6275830b0d33c65872b89a82bb473bcdb889f904a2870f5f7a629ae2ccd15c20
- Skeleton hash
- 9fb76508e93a75f5bc1ebb042aeb39d11e42585c0c21517a30468e3707d4c526
- Architecture hash
- 36e4e6a87fd0d53b6fd92863c48839270a8a09bf06c7aa5b6daa29a714d32a6d
- Diagram SHA-256
- 4f8fdc2a33b5d5191881dda7af99aa403e57ada4b13b357f8002383d54329e32
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.rfrnet_inpainting:build_rfrnet_inpainting: build({}) What it is
RFR-Net, the Recurrent Feature Reasoning network, is an image inpainting model: it recovers the missing regions of a damaged image with realistic contents. Its target is large continuous holes, which the paper says remain difficult because little constrains the center of the hole.
The method follows the way people solve puzzles: solve the easier parts first, then use the results as extra information for the difficult parts. The RFR module recurrently infers the hole boundaries of the convolutional feature maps and uses them as clues for further inference. Partial convolution identifies the area to be updated in each recurrence. Because the recurrent design reuses the same parameters, the paper describes the model as much lighter. The feature maps from all recurrences are then merged, with each output value calculated only from the feature maps in which that location has been filled.
A second module, Knowledge Consistent Attention (KCA), shares attention scores between recurrences and adaptively combines them to guide a patch-swap process. In the paper's implementation there are 2 convolution layers before the RFR module and 4 after it, and the recurrence number is set to 6. Training involves no discriminator: the paper notes there is only a generator network to update.
Key idea. RFR-Net fills large holes progressively in feature space, with a recurrent module that infers hole boundaries and reuses them as clues, plus an attention module kept consistent across recurrences.
- rfr-net
- rfrnet
- recurrent feature reasoning
- rfr
- image inpainting
- hole filling
- knowledge consistent attention
- kca
- image completion
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{li2020recurrentfeaturereasoningimage,
title={Recurrent Feature Reasoning for Image Inpainting},
author={Jingyuan Li and Ning Wang and Lefei Zhang and Bo Du and Dacheng Tao},
year={2020},
eprint={2008.03737},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2008.03737},
}