Papers › A Text Attention Network for Spatial Deformation Robust Scene Text Image Super-resolution

A Text Attention Network for Spatial Deformation Robust Scene Text Image Super-resolution

17 Mar 2022CVPR 2022 1arXiv:2203.09388archive 2025-07-28

jianqi ma, Zhetong Liang, Lei Zhang

Scene text image super-resolution aims to increase the resolution and readability of the text in low-resolution images. Though significant improvement has been achieved by deep convolutional neural networks (CNNs), it remains difficult to reconstruct high-resolution images for spatially deformed texts, especially rotated and curve-shaped ones. This is because the current CNN-based methods adopt locality-based operations, which are not effective to deal with the variation caused by deformations. In this paper, we propose a CNN based Text ATTention network (TATT) to address this problem. The semantics of the text are firstly extracted by a text recognition module as text prior information. Then we design a novel transformer-based module, which leverages global attention mechanism, to exert the semantic guidance of text prior to the text reconstruction process. In addition, we propose a text structure consistency loss to refine the visual appearance by imposing structural consistency on the reconstructions of regular and deformed texts. Experiments on the benchmark TextZoom dataset show that the proposed TATT not only achieves state-of-the-art performance in terms of PSNR/SSIM metrics, but also significantly improves the recognition accuracy in the downstream text recognition task, particularly for text instances with multi-orientation and curved shapes. Code is available at https://github.com/mjq11302010044/TATT.

PaperPDFConference PDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 25 code samples harvested from 2 repositories linked to this paper: 18 ran (of which 4 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 4 where Syntology's instrument failed) · 7 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 19 samples from 1 repository, 14 ran (10 with no instrument failure; 4 where Syntology's instrument failed); community (archive-listed): 6 samples from 1 repository, 4 ran (4 with no instrument failure; 0 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

mjq11302010044/tatt officialmentioned in papermentioned on GitHubpytorchMITSyntology: 19 samples, 14 ran (4 instrument-failed) · 5 unverified report
zhaominyiz/c3-stisr mentioned on GitHubpytorchSyntology: 6 samples, 4 ran (0 instrument-failed) · 2 unverified 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

25 samples harvested: 18 ran (of which 4 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 4 where Syntology's instrument failed) · 7 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · our draft was wrong
1ran; the contract check could not run
14ran
7unverified

Licence: 0 of the 25 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 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 4 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

mjq11302010044/tatt official repository 19 samples, 14 ran (4 instrument-failed) · 5 unverified
ConvEncoder in 12 papers model/transformerSR.py ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 72bca38f7becc86d · report fixture: signature x:Tensor/4/float · returned list · level recorded 2026-09-22
PositionalEncoding in 126 papers
census: 13 implementations from 9 papers, 9 distinct outputs across 5 buckets, one shared input per bucket
model/transformerSR.py ran · metamorphic tier: invariant MIT (permissive) · b174887b7f685284 · report fixture: signature x:Tensor/3/float · returned Tensor · level recorded 2026-09-22
SRResConvDecoder model/transformerSR.py ran · metamorphic tier: invariant MIT (permissive) · 35a157f73c775df0 · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded 2026-09-22
TPSSpatialTransformer model/transformerSR.py ran MIT (permissive) · ad607f18cb194718 · report fixture: signature input:Tensor/4/float, source_control_points:Tensor/3/float · returned tuple · level recorded 2026-09-24
TransformerDecoder in 49 papers model/transformerSR.py ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 709bb74fd9d3756c · report fixture: signature tgt:Tensor/3/float, memory:Tensor/3/float, tgt_mask:NoneType/0/?, memory_mask:NoneType/0/?, tgt_key_padding_mask:NoneType/0/?, memory_key_padding_mask:NoneType/0/?, pos:NoneType/0/?, query_pos:NoneType/0/?, text_prior:NoneType/0/? · returned tuple · level recorded 2026-09-22
TransformerDecoderLayer in 45 papers model/transformerSR.py ran · metamorphic tier: deterministic MIT (permissive) · fc38364146e4b3a4 · report fixture: signature tgt:Tensor/3/float, memory:Tensor/3/float, tgt_mask:NoneType/0/?, memory_mask:NoneType/0/?, tgt_key_padding_mask:NoneType/0/?, memory_key_padding_mask:NoneType/0/?, pos:NoneType/0/?, query_pos:NoneType/0/? · returned tuple · level recorded 2026-09-22
TransformerDecoderLayer_TP model/transformerSR.py ran MIT (permissive) · 61cf3075977a65fb · report fixture: signature tgt:Tensor/3/float, memory:Tensor/3/float, tgt_mask:NoneType/0/?, memory_mask:NoneType/0/?, tgt_key_padding_mask:NoneType/0/?, memory_key_padding_mask:NoneType/0/?, pos:NoneType/0/?, query_pos:NoneType/0/? · returned tuple · level recorded 2026-09-24
TransformerEncoder in 96 papers model/transformerSR.py ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 362e18db540151f7 · report fixture: signature src:Tensor/3/float, mask:NoneType/0/?, src_key_padding_mask:NoneType/0/?, pos:NoneType/0/? · returned Tensor · level recorded 2026-09-22
TransformerEncoderLayer in 90 papers model/transformerSR.py ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 5d4de4fe8da8b3bc · report fixture: signature src:Tensor/3/float, src_mask:NoneType/0/?, src_key_padding_mask:NoneType/0/?, pos:NoneType/0/? · returned Tensor · level recorded 2026-09-22
UpsampleBLock model/transformerSR.py ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 9c3f0411c3daa744 · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded 2026-09-22
_get_clones in 28 papers model/transformerSR.py ran · our draft was wrong MIT (permissive) · c011ff5da6d9bcf3 · report fixture: signature module:callable/0/?, N:int/0/int · returned ModuleList · level recorded 2026-09-22
build_output_control_points model/transformerSR.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · e148691b723e906e · report fixture: signature num_control_points:int/0/int, margins:tuple/1/float · returned Tensor · level recorded 2026-09-22
conv3x3_block in 5 papers model/transformerSR.py ran · our draft was wrong MIT (permissive) · eaa30ce1342b3853 · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, stride:int/0/int · returned Sequential · level recorded 2026-09-22
grid_sample in 18 papers model/transformerSR.py ran · our draft was wrong MIT (permissive) · 47ad53774f24d324 · report fixture: signature input:Tensor/4/float, grid:Tensor/4/float, canvas:Tensor/4/float · returned Tensor · level recorded 2026-09-22
InfoGenTrans model/transformerSR.py unverified MIT (permissive) · d907bd3a32007ddd · report
InfoTransformer model/transformerSR.py unverified MIT (permissive) · a66d691bbfa01975 · report
ResidualBlock in 100 papers model/transformerSR.py unverified MIT (permissive) · ffea63c58c2f8eb8 · report
SRTransformer_V4 model/transformerSR.py unverified MIT (permissive) · 297be0ef27a83aa1 · report
STNHead model/transformerSR.py unverified MIT (permissive) · b518b64e684e26e2 · report
zhaominyiz/c3-stisr community (archive-listed) 6 samples, 4 ran (0 instrument-failed) · 2 unverified
GruBlock model/c3.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · debb069fbbbe79b8 · report fixture: returned GruBlock · level recorded 2026-09-22
RecurrentResidualBlockTL model/c3.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 12b4f9480b2c839e · report fixture: returned RecurrentResidualBlockTL · level recorded 2026-09-22
UpsampleBLock model/c3.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 2d273b67edeabc41 · report fixture: returned UpsampleBLock · level recorded 2026-09-22
mish in 95 papers
census: 5 implementations from 8 papers, 1 distinct output on one shared input
model/c3.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 2bc017e584227198 · report fixture: returned mish · level recorded 2026-09-22
TPInterpreter model/c3.py unverified Apache-2.0 (permissive) · 532bb6dd349eb8fe · report
TSRN_TL_TRANS model/c3.py unverified Apache-2.0 (permissive) · 7764f17a0b0cf401 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.

2 assemblies on this paper: 2 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).

2 sibling assemblies for TATT (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.

harvested Assembly for TATT (graph method: TATT). 6 bricks; individually on a fixture: 4 ran (of which 4 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 0 where Syntology's instrument failed) · 2 unverified; every one of the 4 samples that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.

one of 2 siblings

  1. TSRN_TL_TRANS entry · level 0 · unverified · 7764f17a0b0cf401
  2. RecurrentResidualBlockTL model · level 1 · ran · 12b4f9480b2c839e
  3. TPInterpreter model · level 0 · unverified · 532bb6dd349eb8fe
  4. UpsampleBLock helper · level 1 · ran · 2d273b67edeabc41
  5. GruBlock model · level 1 · ran · debb069fbbbe79b8
  6. mish helper · level 1 · ran · 2bc017e584227198

harvested Assembly for TATT (graph method: TATT). 21 bricks; individually on a fixture: 16 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 0 violated, 10 with no contract checked; 6 where Syntology's instrument failed) · 5 unverified. The assembly has not been run end-to-end.

one of 2 siblings

  1. SRTransformer_V4 entry · level 0 · unverified · 297be0ef27a83aa1
  2. ConvEncoder helper · level 1 · ran · 72bca38f7becc86d
  3. InfoGenTrans model · level 0 · unverified · d907bd3a32007ddd
  4. PositionalEncoding model · level 1 · ran · b174887b7f685284
  5. SRResConvDecoder helper · level 1 · ran · 35a157f73c775df0
  6. STNHead helper · level 0 · unverified · b518b64e684e26e2
  7. TPSSpatialTransformer helper · level 1 · ran · ad607f18cb194718
  8. ResidualBlock helper · level 0 · unverified · ffea63c58c2f8eb8
  9. InfoTransformer helper · level 0 · unverified · a66d691bbfa01975
  10. UpsampleBLock model · level 1 · ran · 9c3f0411c3daa744
  11. conv3x3_block helper · level 1 · ran · our draft was wrong · eaa30ce1342b3853
  12. build_output_control_points helper · level 1 · ran; the contract check could not run (RAISES) · e148691b723e906e
  13. compute_partial_repr helper · level 1 · ran; the contract check could not run · e1814689377a5c82
  14. grid_sample helper · level 1 · ran · our draft was wrong · 47ad53774f24d324
  15. TransformerDecoder helper · level 1 · ran · 709bb74fd9d3756c
  16. TransformerDecoderLayer_TP helper · level 1 · ran · 61cf3075977a65fb
  17. TransformerEncoder helper · level 1 · ran · 362e18db540151f7
  18. TransformerEncoderLayer helper · level 1 · ran · 5d4de4fe8da8b3bc
  19. _get_clones helper · level 1 · ran · our draft was wrong · c011ff5da6d9bcf3
  20. _get_activation_fn helper · level 1 · ran · our draft was wrong · 0bb264f52e707e08
  21. TransformerDecoderLayer helper · level 1 · ran · fc38364146e4b3a4

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2203.09388") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

Image Super-ResolutionSSIMSuper-Resolution

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