training and synthetic data generation code

This commit is contained in:
Maciej Budyś
2022-02-09 20:39:01 +01:00
parent a9085393f4
commit 975dbf4d5e
42 changed files with 7089 additions and 15 deletions

9
manga_ocr_dev/env.py Normal file
View File

@@ -0,0 +1,9 @@
from pathlib import Path
ASSETS_PATH = Path(__file__).parent.parent / 'assets'
FONTS_ROOT = Path('~/data/jp_fonts').expanduser()
DATA_SYNTHETIC_ROOT = Path('~/data/manga/synthetic').expanduser()
BACKGROUND_DIR = Path('~/data/manga/Manga109s/background').expanduser()
MANGA109_ROOT = Path('~/data/manga/Manga109s').expanduser()
TRAIN_ROOT = Path('~/data/manga/out').expanduser()