BengaliAI / synthIndic

synthetic word creation for indic languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SYNTH-INDIC

Version: 0.0.2

LOCAL ENVIRONMENT

OS          : Ubuntu 20.04.3 LTS       
Memory      : 23.4 GiB 
Processor   : Intel® Corei5-8250U CPU @ 1.60GHz × 8    
Graphics    : Intel® UHD Graphics 620 (Kabylake GT2)  
Gnome       : 3.36.8

Environment Setup

Assuming the libraqm complex layout is working properly, you can skip to python requirements.

  • Install libraqm as described here
  • sudo ldconfig (librarqm local repo)

python requirements

  • pip requirements: pip install -r requirements.txt

Its better to use a virtual environment OR use conda-

  • conda: use environment.yml: conda env create -f environment.yml

Execution

  • change directory: cd scripts
  • run scene.py
usage: SynthIndic recog Dataset Creating Script [-h] [--num_process NUM_PROCESS] [--data_div DATA_DIV] save_path fonts_dir backs_dir dict_txt

positional arguments:
  save_path             Path of the directory to save the dataset
  fonts_dir             Path of the folder that contains fonts
  backs_dir             Path of the folder that contains background images
  dict_txt              Path of the dictionary txt to be used

optional arguments:
  -h, --help            show this help message and exit
  --num_process NUM_PROCESS
                        number of processes to be used:default=24
  --data_div DATA_DIV   number of data to be used:default=10000

About

synthetic word creation for indic languages


Languages

Language:Python 100.0%