To avoid IO bottleneck, preprocessing is necessary to pickle your data into binary and persist in memory during training. python font2img.py --src_font=src.ttf --dst_font=trg.otf --charset=CN --sample ...