Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

TextDiffuser: Diffusion Models as Text Painters

About

Diffusion models have gained increasing attention for their impressive generation abilities but currently struggle with rendering accurate and coherent text. To address this issue, we introduce TextDiffuser, focusing on generating images with visually appealing text that is coherent with backgrounds. TextDiffuser consists of two stages: first, a Transformer model generates the layout of keywords extracted from text prompts, and then diffusion models generate images conditioned on the text prompt and the generated layout. Additionally, we contribute the first large-scale text images dataset with OCR annotations, MARIO-10M, containing 10 million image-text pairs with text recognition, detection, and character-level segmentation annotations. We further collect the MARIO-Eval benchmark to serve as a comprehensive tool for evaluating text rendering quality. Through experiments and user studies, we show that TextDiffuser is flexible and controllable to create high-quality text images using text prompts alone or together with text template images, and conduct text inpainting to reconstruct incomplete images with text. The code, model, and dataset will be available at \url{https://aka.ms/textdiffuser}.

Jingye Chen, Yupan Huang, Tengchao Lv, Lei Cui, Qifeng Chen, Furu Wei• 2023

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationMARIO-Eval
CLIPScore34.4
25
Text Style Fidelity AssessmentScenePair Full-size Image
SSIM98.97
9
Scene Text EditingEnglish Scene Text Editing Dataset (test)
Sen.Acc52.6
8
Visual Text EditingAnyText benchmark-EN (test)
NED0.81
8
OCR-based Text RecognitionMARIO-7M (test)
AP61.35
7
OCR-based Text RecognitionTMDB (test)
AP44.01
7
OCR-based Text RecognitionOpenLibrary (test)
AP56.17
7
Scene Text EditingICDAR 8 characters 2013 (test)
Sequence Accuracy82
7
Scene Text EditingEnglish ScenePair (test)
W.Acc51.48
7
Scene Text EditingICDAR 2013 (test)
SeqAcc75
7
Showing 10 of 28 rows

Other info

Code

Follow for update