You should collect different ttf files, determine the source font, and divide the training set and test set.
Determine the generated character set (it also needs to be divided into training character set ‘train_unis’ and test character set ‘val_unis’), use font2image.py to generate images, see readme for organizational form.
Great Work!!! How did you create the dataset?