TextDoctor: Unified Document Image Inpainting via Patch Pyramid Diffusion Models
On the map: Diffusion models → 3D, point cloud and scene generation
Abstract (arXiv)
Digital versions of real-world text documents often suffer from issues like environmental corrosion of the original document, low-quality scanning, or human interference. Existing document restoration and inpainting methods typically struggle with generalizing to unseen document styles and handling high-resolution images. To address these challenges, we introduce TextDoctor, a novel unified document image inpainting method. Inspired by human reading behavior, TextDoctor restores fundamental text elements from patches and then applies diffusion models to entire document images instead of training models on specific document types. To handle varying text sizes and avoid out-of-memory issues, common in high-resolution documents, we propose using structure pyramid prediction and patch pyramid diffusion models. These techniques leverage multiscale inputs and pyramid patches to enhance the quality of inpainting both globally and locally. Extensive qualitative and quantitative experiments on seven public datasets validated that TextDoctor outperforms state-of-the-art methods in restoring various types of high-resolution document images.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in 3D, point cloud and scene generation, one of 14 directions in Diffusion models. Builds on 33 of its 54 references that are in the map. First posted on arXiv 6 Mar 2025.
Builds on
33 of 54 references.
Closest ancestors · 2
Same direction, newest first
- 2024Text Image Inpainting via Global Structure-Guided Diffusion Models26 Jan
- 2023SyncDiffusion: Coherent Montage via Synchronized Joint Diffusions8 Jun
Other references · 31
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2023MultiDiffusion: Fusing Diffusion Paths for Controlled Image Generationcited by 529
- 2015An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognitioncited by 519
- 2015A Neural Algorithm of Artistic Stylecited by 480
- 2019FUNSD: A Dataset for Form Understanding in Noisy Scanned Documentscited by 345
- 2024VM-UNet: Vision Mamba UNet for Medical Image Segmentationcited by 286
- 2021Large Scale Image Completion via Co-Modulated Generative Adversarial Networkscited by 219
- 2023AnyText: Multilingual Visual Text Generation And Editingcited by 165
- 2020Contextual Residual Aggregation for Ultra High-Resolution Image Inpaintingcited by 124
- 2023DemoFusion: Democratising High-Resolution Image Generation With No cited by 105
19 more
- 2021Aggregated Contextual Transformations for High-Resolution Image Inpaintingcited by 89
- 2020DE-GAN: A Conditional Generative Adversarial Network for Document Enhancementcited by 44
- 2023DocDiff: Document Enhancement via Residual Diffusion Modelscited by 37
- 2023High-Resolution Document Shadow Removal via A Large-Scale Real-World Dataset and A Frequency-Aware Shadow Erasing Netcited by 36
- 2023CoordFill: Efficient High-Resolution Image Inpainting via Parameterized Coordinate Queryingcited by 34
- 2022DocEnTr: An End-to-End Document Image Enhancement Transformercited by 28
- 2024DocRes: A Generalist Model Toward Unifying Document Image Restoration Taskscited by 27
- 2022Geometric Representation Learning for Document Image Rectificationcited by 26
- 2022Roboflow 100: A Rich, Multi-Domain Object Detection Benchmarkcited by 26
- 2022Restoring Vision in Hazy Weather with Hierarchical Contrastive Learningcited by 17
- 2024PromptRR: Diffusion Models as Prompt Generators for Single Image Reflection Removalcited by 14
- 2023TextDiff: Mask-Guided Residual Diffusion Models for Scene Text Image Super-Resolutioncited by 10
- 2023GDB: Gated convolutions-based Document Binarizationcited by 9
- 2024NAF-DPM: A Nonlinear Activation-Free Diffusion Probabilistic Model for Document Enhancementcited by 9
- 2024FACEMUG: A Multimodal Generative and Fusion Framework for Local Facial Editingcited by 6
- 2021A novel segmentation dataset for signatures on bank checkscited by 4
- 2022Do Inpainting Yourself: Generative Facial Inpainting Guided by Exemplarscited by 4
- 2023GRIG: Few-Shot Generative Residual Image Inpaintingcited by 4
- 2023Handling The Non-Smooth Challenge in Tensor SVD: A Multi-Objective Tensor Recovery Frameworkcited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025DvD: Unleashing a Generative Paradigm for Document Dewarping via Coordinates-based Diffusion Model
- 2025Text-Aware Image Restoration with Diffusion Models
- 2023TextDiffuser: Diffusion Models as Text Painters
- 2025Ultra High-Resolution Image Inpainting with Patch-Based Content Consistency Adapter
- 2025One Stone with Two Birds: A Null-Text-Null Frequency-Aware Diffusion Models for Text-Guided Image Inpainting
- 2023Magicremover: Tuning-free Text-guided Image inpainting with Diffusion Models
- 2023DreamInpainter: Text-Guided Subject-Driven Image Inpainting with Diffusion Models
- 2024Improving Text-guided Object Inpainting with Semantic Pre-inpainting