← Open Source
clovaai

synthtiger

Official Implementation of SynthTIGER (Synthetic Text Image Generator), ICDAR 2021.

Model DevelopmentDataset engineeringPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
580
Stars
111
Forks
+0
This week
1
Contributors
Created 2021-04-30 · Updated 2026-10-06 · #16645 today
Top developers
moonbings

clovaai/synthtiger is ranked 16,645 with 580 stars.

Same-category comparison

clovaai/synthtiger is ranked 16,645 among these 8 peers; graykode/xlnet-Pytorch is ranked 16,647.

Same-category comparison
NameRankMetrics
torcheeg/torcheeg16,633
Language:
Python
Stars:
581
Forks:
74
Description:
TorchEEG is a library built on PyTorch for EEG signal analysis.
yikangshen/Ordered-Neurons16,635
Language:
Python
Stars:
581
Forks:
99
Description:
Code for the paper "Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks".
LatentActionPretraining/LAPA16,639
Language:
Python
Stars:
580
Forks:
45
Description:
[ICLR 2025] LAPA: Latent Action Pretraining from Videos.
OpenDriveLab/WholebodyVLA16,641
Stars:
580
Forks:
19
Description:
[ICLR 2026] Towards Unified Latent VLA for Whole-body Loco-manipulation Control.
graykode/xlnet-Pytorch16,647
Language:
Jupyter Notebook
Stars:
580
Forks:
103
Description:
Simple XLNet implementation with Pytorch Wrapper.
wayveai/Driving-with-LLMs16,651
Language:
Python
Stars:
580
Forks:
50
Description:
PyTorch implementation for the paper "Driving with LLMs: Fusing Object-Level Vector Modality for Explainable Autonomous Driving".
beyretb/AnimalAI-Olympics16,654
Language:
Python
Stars:
579
Forks:
84
Description:
Code repository for the Animal AI Olympics competition.
bryanyzhu/two-stream-pytorch16,655
Language:
Python
Stars:
579
Forks:
149
Description:
PyTorch implementation of two-stream networks for video action recognition.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryDataset engineering
KeywordsData synthesis, OCR
Stars580
Forks111
Contributors1
Created date2021-04-30
Updated date2026-10-06
Stars in 1 day0
Stars in 7 days0
Rank16,645
Previous rank16,435
Rank change-210
7-day stars rank15,646
Previous 7-day stars rank15,651
7-day stars rank change5
Total stars rank17,243
Previous total stars rank17,217
Total stars rank change-26
CountrySouth Korea
README summary

SynthTIGER 🐯 : Synthetic Text Image Generator Synthetic Text Image Generator for OCR Model | Paper | Documentation | Datasets Contents Documentation Installation Usage Advanced Usage Datasets Citation License Documentation The documentation is available at . You can check API reference in this documentation. To install SynthTIGER from PyPI: If you see a dependency error when you install or run SynthTIGER, install dependencies. Usage Examples SynthTIGER text images : a directory containing images. : a file containing bounding boxes of characters with text effect. : a file containing bounding

boxes of characters without text effect. : a directory containing mask images with text effect. : a directory containing mask images without text effect. Multiline text images : a directory containing images. Advanced Usage Non-Latin language data generation 1. Prepare corpus format, line by line (example). Prepare fonts See font customization for more details. Edit corpus path and font path in config file (example) 4. Extract renderable charsets This script extracts renderable charsets for all font files (example). Text files are generated

in the input path with the same names as the fonts. Edit font path in config file (example) 4. Run synthtiger Colormap customization 1. Create colormaps This script creates colormaps for all image files (example). Edit colormap path in config file (example) 4. Run synthtiger Template customization You can implement custom templates by inheriting the base template. Datasets SynthTIGER is available for download at google drive. Dataset was split into several smaller files. Please download all files and run following

command. zip** (36G) (md5: 5b5365f4fe15de24e403a9256079be70) Original paper version. zip** (38G) (md5: b2757a7e2b5040b14ed64c473533b592) Used MJ and ST lexicon instead of MJ and ST label. txt Fixed a bug that applies transformation twice on curved text. Fixed a bug that incorrectly converts grayscale to RGB. 6 | Structure The structure of the dataset is as follows. Image path and label are separated by tab. ( ) Citation License The following directories and their subdirectories are licensed the same as their origins.

Frequently asked questions

How many stars and forks are recorded?

clovaai/synthtiger has 580 stars and 111 forks.

What is the repository rank?

clovaai/synthtiger is ranked 16,645.

What language and category are recorded?

clovaai/synthtiger has 580 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

clovaai/synthtiger is compared with graykode/xlnet-Pytorch, ranked 16,647 with 580 stars.

README

SynthTIGER 🐯 : Synthetic Text Image Generator

Synthetic Text Image Generator for OCR Model | Paper | Documentation | Datasets

Contents

Documentation

The documentation is available at .

You can check API reference in this documentation.

Installation

SynthTIGER requires python>=3.6 and libraqm.

To install SynthTIGER from PyPI:

$ pip install synthtiger

If you see a dependency error when you install or run SynthTIGER, install dependencies.

Usage

# Set environment variable (for macOS)
$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
usage: synthtiger [-h] [-o DIR] [-c NUM] [-w NUM] [-s NUM] [-v] SCRIPT NAME [CONFIG]

positional arguments:
  SCRIPT                Script file path.
  NAME                  Template class name.
  CONFIG                Config file path.

optional arguments:
  -h, --help            show this help message and exit
  -o DIR, --output DIR  Directory path to save data.
  -c NUM, --count NUM   Number of output data. [default: 100]
  -w NUM, --worker NUM  Number of workers. If 0, It generates data in the main process. [default: 0]
  -s NUM, --seed NUM    Random seed. [default: None]
  -v, --verbose         Print error messages while generating data.

Examples

SynthTIGER text images

# horizontal
synthtiger -o results -w 4 -v examples/synthtiger/template.py SynthTiger examples/synthtiger/config_horizontal.yaml

# vertical
synthtiger -o results -w 4 -v examples/synthtiger/template.py SynthTiger examples/synthtiger/config_vertical.yaml
 ![](https://user-images.githubusercontent.com/12423224/153699084-1d5fbb15-0ca0-4a85-9639-6f2c4c1bf9ec.png) 
 ![](https://user-images.githubusercontent.com/12423224/199258481-5706db59-127a-4453-a8ab-4a0bb9f266d5.png) 
  • images: a directory containing images.
  • gt.txt: a file containing text labels.
  • coords.txt: a file containing bounding boxes of characters with text effect.
  • glyph_coords.txt: a file containing bounding boxes of characters without text effect.
  • masks: a directory containing mask images with text effect.
  • glyph_masks: a directory containing mask images without text effect.

Multiline text images

synthtiger -o results -w 4 -v examples/multiline/template.py Multiline examples/multiline/config.yaml

  • images: a directory containing images.
  • gt.txt: a file containing text labels.

Advanced Usage

Non-Latin language data generation

  1. Prepare corpus

    txt format, line by line (example).

  2. Prepare fonts

    See font customization for more details.

  3. Edit corpus path and font path in config file (example)

  4. Run synthtiger

Font customization

  1. Prepare fonts

    ttf/otf format (example).

  2. Extract renderable charsets

    python tools/extract_font_charset.py -w 4 fonts/
    

    This script extracts renderable charsets for all font files (example).

    Text files are generated in the input path with the same names as the fonts.

  3. Edit font path in config file (example)

  4. Run synthtiger

Colormap customization

  1. Prepare images

    jpg/jpeg/png/bmp format.

  2. Create colormaps

    python tools/create_colormap.py --max_k 3 -w 4 images/ colormap.txt
    

    This script creates colormaps for all image files (example).

  3. Edit colormap path in config file (example)

  4. Run synthtiger

Template customization

You can implement custom templates by inheriting the base template.

from synthtiger import templates


class MyTemplate(templates.Template):
    def __init__(self, config=None):
        # initialize template.

    def generate(self):
        # generate data.

    def init_save(self, root):
        # initialize something before save.

    def save(self, root, data, idx):
        # save data to specific path.

    def end_save(self, root):
        # finalize something after save.

Datasets

SynthTIGER is available for download at google drive.

Dataset was split into several smaller files. Please download all files and run following command.

# for Linux, macOS
cat synthtiger_v1.0.zip.* > synthtiger_v1.0.zip

# for Windows
copy /b synthtiger_v1.0.zip.* synthtiger_v1.0.zip

synthtiger_v1.0.zip (36G) (md5: 5b5365f4fe15de24e403a9256079be70)

  • Original paper version.
    • Used MJ and ST label.

synthtiger_v1.1.zip (38G) (md5: b2757a7e2b5040b14ed64c473533b592)

Version IIIT5k SVT IC03 IC13 IC15 SVTP CUTE80 Total
1.0 93.2 87.3 90.5 92.9 72.1 77.7 80.6 85.9
1.1 93.4 87.6 91.4 93.2 73.9 77.8 80.6 86.6

Structure

The structure of the dataset is as follows. The dataset contains 10M images.

gt.txt
images/
    0/
        0.jpg
        1.jpg
        ...
        9998.jpg
        9999.jpg
    1/
    ...
    998/
    999/

The format of gt.txt is as follows. Image path and label are separated by tab. (\t)

images/0/0.jpg	10
images/0/1.jpg	date:
...
images/999/9999998.jpg	STUFFIER
images/999/9999999.jpg	Re:

Citation

@inproceedings{yim2021synthtiger,
  title={SynthTIGER: Synthetic Text Image GEneratoR Towards Better Text Recognition Models},
  author={Yim, Moonbin and Kim, Yoonsik and Cho, Han-Cheol and Park, Sungrae},
  booktitle={International Conference on Document Analysis and Recognition},
  pages={109--124},
  year={2021},
  organization={Springer}
}

License

SynthTIGER
Copyright (c) 2021-present NAVER Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

The following directories and their subdirectories are licensed the same as their origins. Please refer to NOTICE

docs/
resources/font/
Nearby in the ranking
Similar items