ecnuycxie / DG-Font

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

Use DG-Font to generate a lots of new images with a few images? #21

Open dagongji10 opened 2 years ago

dagongji10 commented 2 years ago

@ecnuycxie If I use 400 fonts to train DG-Font. In the inference stage, I write 20 character images and save them as 80*80 .png. Can I input the 20 images as style-image, and generate other 3735 Chinese characters with my writting style? How can I do this?

ecnuycxie commented 2 years ago

This is a few-shot generation problem. You can use a pre-trained model (using 400 fonts) to achieve it. Specifically, you can create a new folder named "id_401" to store your handwriting style images.

dagongji10 commented 2 years ago

This is a few-shot generation problem. You can use a pre-trained model (using 400 fonts) to achieve it. Specifically, you can create a new folder named "id_401" to store your handwriting style images.

OK, I will have a try, Thanks!

dagongji10 commented 2 years ago

@ecnuycxie As you said, I can generate new images now. But the result seems not always fine. 111 I use Song as the content image, and write chinese image as style image. Sometimes the stroke will be drop. How to solve this problem?

ecnuycxie commented 2 years ago

Try to use KAI as source font.

shujian2 commented 2 years ago

@ecnuycxie 正如你所说,我现在可以生成新图像。但结果似乎并不总是好的。 我用宋作为内容形象,把中文形象写成风格形象。有时中风会下降。 如何解决这个问题呢? 111

Hello, how is this generated

jingmingtao commented 1 year ago

If I use 400 fonts to train DG-Font. In the inference stage, I write 20 character images and save them as 80*80 .png. Can I input the 20 images as style-image, and generate other 3735 Chinese characters with my writting style? How can I do this?

Hello,I use 400 fonts to train DG-Font. In the inference stage, I write 20 character images and save them as 80*80 .png. Can I input the 20 images as style-image, and generate other 3735 Chinese characters with my writting style? How can I do this? Can you help me?

666pz commented 1 year ago

Hello, how do you generate personal style font from song style in this picture!!! very grateful for you!!

TomSuen commented 9 months ago

@ecnuycxie As you said, I can generate new images now. But the result seems not always fine. 111 I use Song as the content image, and write chinese image as style image. Sometimes the stroke will be drop. How to solve this problem?

你好,我觉得你训练的结果很不错,能够看出手写字体的不规整特征(而非印刷体);我这边训练的问题是,生成的字体总是很像某种印刷体或者很规整的钢笔字。请问你的训练集包含哪些样式的字体呢?