Skip to content

sleep3r/Diffusion-Handwriting-Generation.pytorch

Repository files navigation

Diffusion Model for Handwriting Generation

CodeFactor python


Data preparation:

Download IAM Handwriting Database and extract it somewhere with the following structure:

DATA_DIR/
├── ascii
├── lineImages
└── lineStrokes

Install:

make install

Train:

First, configure your training in configs/<cfg>.yml:

experiment:
  name: <exp_name>
  work_dir: <work_dir>
  data_dir: <data_dir>

Then, run:

make train CONFIG=<cfg>.yml

References:

Papers
[1] Luhman, Troy, and Eric Luhman. "Diffusion models for handwriting generation." arXiv preprint arXiv:2011.06704 (2020).