ecnuycxie / DG-Font

The pytorch implementation of DG-Font: Deformable Generative Networks for Unsupervised Font Generation
220 stars 48 forks source link

Relationship between chara_size and img_size #49

Closed Note-Liu closed 1 year ago

Note-Liu commented 1 year ago

Does the model have any requirements for the input image size and character size?

( I set the parameter with: --img_size 80 --chara_size 80)

ecnuycxie commented 1 year ago

In the experiments, --img_size=80 and --chara_size=50. It is noted that u should put the character in the center of the image.

Note-Liu commented 1 year ago

In the experiments, --img_size=80 and --chara_size=50. It is noted that u should put the character in the center of the image.

Thank you for your reply! And i have another question to ask. I use the font generated script file font2img.py that you provided , but I found that some .ttf generated fonts are not centered . center: 0000 0001 0002

not center: 0000 0001 0002

Do I need to change the code in font2img.py?