yizhiwang96 / deepvecfont-v2

[CVPR 2023] DeepVecFont-v2: Exploiting Transformers to Synthesize Vector Fonts with Higher Quality
MIT License
71 stars 8 forks source link

Random font Generation #10

Open holmes27 opened 1 year ago

holmes27 commented 1 year ago

How to run code for random font generation?

yizhiwang96 commented 1 year ago

Currently the code is not released but the general idea is to sample Gaussian noises then sent them to the decoders.

holmes27 commented 1 year ago

@yizhiwang96 Thanks for your prompt reply! I wanted to know how can we give 3-4 characters as input (in svg/ png format) and generate entire font set (svg/ttf) ?

yizhiwang96 commented 1 year ago

Our method takes ref_nshot svgs as reference and generates the whole font. ref_nshot: the number of reference number is fixed for each training. In our experiment, it was 4. If you want to input your own svgs, you need to first convert it into the format of our dataset, see the instruction in readme.

holmes27 commented 1 year ago

Thanks a lot! @yizhiwang96 I had a doubt, the sfd files created for each character in the font have StartChar as A (train/test data_set that is available) and while conversion from ttf to sfd the char is set as 'A' in each loop. What is the assumption here?

I have separate svgs for some characters and converted svg to sfd directly for each character