Skip to main navigation Skip to search Skip to main content

OCR-VQGAN: Taming Text-within-Image Generation

  • Juan A. Rodriguez
  • , David Vazquez
  • , Issam Laradji
  • , Marco Pedersoli
  • , Pau Rodriguez
  • Computer Vision Centre
  • ServiceNow Research

Research output: Contribution to Book/Report types › Contribution to conference proceedings › peer-review

29 Citations (Scopus)

Abstract

Synthetic image generation has recently experienced significant improvements in domains such as natural image or art generation. However, the problem of figure and diagram generation remains unexplored. A challenging aspect of generating figures and diagrams is effectively rendering readable texts within the images. To alleviate this problem, we present OCR-VQGAN, an image encoder, and decoder that leverages OCR pre-trained features to optimize a text perceptual loss, encouraging the architecture to preserve high-fidelity text and diagram structure. To explore our approach, we introduce the Paper2Fig100k dataset, with over 100k images of figures and texts from research papers. The figures show architecture diagrams and methodologies of articles available at arXiv.org from fields like artificial intelligence and computer vision. Figures usually include text and discrete objects, e.g., boxes in a diagram, with lines and arrows that connect them. We demonstrate the effectiveness of OCR-VQGAN by conducting several experiments on the task of figure reconstruction. Additionally, we explore the qualitative and quantitative impact of weighting different perceptual metrics in the overall loss function. We release code, models, and dataset at https://github.com/joanrod/ocr-vqgan.

Original languageEnglish
Title of host publicationProceedings - 2023 IEEE Winter Conference on Applications of Computer Vision, WACV 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages3678-3687
Number of pages10
ISBN (Electronic)9781665493468
DOIs
Publication statusPublished - 2023
Event23rd IEEE/CVF Winter Conference on Applications of Computer Vision, WACV 2023 - Waikoloa, United States
Duration: 3 Jan 2023 → 7 Jan 2023

Publication series

NameProceedings - 2023 IEEE Winter Conference on Applications of Computer Vision, WACV 2023

Conference

Conference23rd IEEE/CVF Winter Conference on Applications of Computer Vision, WACV 2023
Country/TerritoryUnited States
CityWaikoloa
Period3/01/23 → 7/01/23

Keywords

  • Algorithms: Computational photography
  • Vision + language and/or other modalities
  • image and video synthesis

ASJC Scopus subject areas

  • Artificial Intelligence
  • Computer Science Applications
  • Computer Vision and Pattern Recognition

Fingerprint

Dive into the research topics of 'OCR-VQGAN: Taming Text-within-Image Generation'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this