handwriting-ocr / src /lib /constants.py
ashkansadri's picture
init
22997db
Raw History Blame Contribute Delete
632 Bytes
from pathlib import Path
# Root directories
PROJECT_ROOT = Path(__file__).parent.parent.parent
DATA_DIR = PROJECT_ROOT / "data"
LOGS_DIR = PROJECT_ROOT / "logs"
RAW_DIR = DATA_DIR / "raw"
PROCESSED_DIR = DATA_DIR / "processed"
# Dataset specific directories
ENGLISH_HANDWRITTEN_DIR = RAW_DIR / "english_handwritten"
MNIST_DIR = RAW_DIR / "mnist"
AZ_DIR = RAW_DIR / "az_handwritten"
CHARS74K_DIR = RAW_DIR / "chars74k"
# Create all directories
for dir_path in [DATA_DIR, LOGS_DIR, RAW_DIR, PROCESSED_DIR,
ENGLISH_HANDWRITTEN_DIR, MNIST_DIR, AZ_DIR, CHARS74K_DIR]:
dir_path.mkdir(parents=True, exist_ok=True)