Papers › Don't Forget Me: Accurate Background Recovery for Text Removal via Modeling...

Don't Forget Me: Accurate Background Recovery for Text Removal via Modeling Local-Global Context

21 Jul 2022arXiv:2207.10273archive 2025-07-28

Chongyu Liu, Lianwen Jin, Yuliang Liu, Canjie Luo, Bangdong Chen, Fengjun Guo, Kai Ding

Text removal has attracted increasingly attention due to its various applications on privacy protection, document restoration, and text editing. It has shown significant progress with deep neural network. However, most of the existing methods often generate inconsistent results for complex background. To address this issue, we propose a Contextual-guided Text Removal Network, termed as CTRNet. CTRNet explores both low-level structure and high-level discriminative context feature as prior knowledge to guide the process of background restoration. We further propose a Local-global Content Modeling (LGCM) block with CNNs and Transformer-Encoder to capture local features and establish the long-term relationship among pixels globally. Finally, we incorporate LGCM with context guidance for feature modeling and decoding. Experiments on benchmark datasets, SCUT-EnsText and SCUT-Syn show that CTRNet significantly outperforms the existing state-of-the-art methods. Furthermore, a qualitative experiment on examination papers also demonstrates the generalization ability of our method. The codes and supplement materials are available at https://github.com/lcy0604/CTRNet.

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="2207.10273")

Code

Syntology Ran 9 of 22 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 9 ran with no contract checked.

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

lcy0604/ctrnet officialmentioned in papermentioned on GitHubpytorchMIT 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

22 samples harvested; 9 ran; 0 honoured the contract we drafted; 13 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.

9ran
13unverified

Licence: 0 of the 22 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 lcy0604/CTRNet. “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.

AdversarialLoss lcy0604/CTRNet/models_CTRNet.py official repository ran fingerprinted MIT (permissive) · 06eae0ae5e115c24 · report
ConvWithActivation lcy0604/CTRNet/models_CTRNet.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 135239d29145820a · report
ConvWithActivation_encode lcy0604/CTRNet/models_CTRNet.py official repository ran fingerprinted MIT (permissive) · 94b5cbe5237f7e9d · report
D_Net lcy0604/CTRNet/models_CTRNet.py official repository ran MIT (permissive) · fa209b1538963765 · report
DenseLayer lcy0604/CTRNet/models_CTRNet.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 28816304c3e4e4bc · report
LateralConnect lcy0604/CTRNet/models_CTRNet.py official repository ran · metamorphic tier: invariant MIT (permissive) · 7cc637107bac1c93 · report
PositionEmbeddingSine lcy0604/CTRNet/models_CTRNet.py official repository ran fingerprinted MIT (permissive) · b4ca9a91816f9d68 · report
RDB lcy0604/CTRNet/models_CTRNet.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 0cd90b435a362538 · report
ResnetBlock lcy0604/CTRNet/models_CTRNet.py official repository ran · metamorphic tier: invariant MIT (permissive) · 6d01e64cec5bf46c · report
CTRNet lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · 4635cdc63b1df831 · report
ConvTD_SPADE_refine lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · e503b02c4552fae1 · report
ConvTE_spade lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · c15346bf36f3790c · report
DeConvWithActivation lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · 08bef43cba4a315e · report
Downsample_connect lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · c33bbf8c045f74d5 · report
G_Net lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · 8d65710b92ac9ee8 · report
ResnetBlock_Spade lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · c927665bd23c28e5 · report
SPADE lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · 6c9dabcd0790d01f · report
StructureGen lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · ac4a7e0a62602134 · report
TransformerEncoderLayer lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · 8432e0f043a686c3 · report
VGG16FeatureExtractor lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · 8e1316c982cfa4fe · report
_get_activation_fn lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · b38b74ab50f7c296 · report
create_model lcy0604/CTRNet/models_CTRNet.py official repository unverified MIT (permissive) · a8929ba31c8b7c2b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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