Conditional Text Image Generation with Diffusion Models

Yuanzhi Zhu, Zhaohai Li, Tianwei Wang, Mengchao He, C. Yao
2/14/2026

No official code found. Best implementation: teja00/CTIG-Diffusion (8 stars, last commit 2025-06-05).

Abstract

Current text recognition systems, including those for handwritten scripts and scene text, have relied heavily on image synthesis and augmentation, since it is difficult to realize real-world complexity and diversity through collecting and annotating enough real text images. In this paper, we explore the problem of text image generation, by taking advantage of the powerful abilities of Diffusion Models in generating photo-realistic and diverse image samples with given conditions, and propose a method called Conditional Text Image Generation with Diffusion Models (CTIG-DM for short). To conform to the characteristics of text images, we devise three conditions: image condition, text condition, and style condition, which can be used to control the attributes, contents, and styles of the samples in the image generation process. Specifically, four text image generation modes, namely: (1) synthesis mode, (2) augmentation mode, (3) recovery mode, and (4) imitation mode, can be derived by combining and configuring these three conditions. Extensive experiments on both handwritten and scene text demonstrate that the proposed CTIG-DM is able to produce image samples that simulate real-world complexity and diversity, and thus can boost the performance of existing text recognizers. Besides, CTIG-DM shows its appealing potential in domain adaptation and generating images containing Out-Of-Vocabulary (OOV) words.

View on arXivView PDF

Code Implementations(1)

This implementation is based on the paper titled "Conditional Text Image Generation with Diffusion Models," which can be found at arXiv:2306.10804v1.

80Python, Jupyter NotebookMay 15, 20241 years ago
diffusion-modelsgenerative-aiscratch-implementation

Similar Papers

Cite this paper

@article{zhu2026conditional,
  title  = {Conditional Text Image Generation with Diffusion Models},
  author = {Yuanzhi Zhu and Zhaohai Li and Tianwei Wang and Mengchao He and C. Yao},
  year   = {2026},
  eprint = {2306.10804},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.10804},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.10804.svg)](https://codeofpaper.com/paper/2306.10804)

Discussion