yizhiwang96 / deepvecfont

[SIGGRAPH Asia 2021] DeepVecFont: Synthesizing High-quality Vector Fonts via Dual-modality Learning
MIT License
182 stars 31 forks source link

How to test the model with my own glyphs? #27

Closed christinalc closed 1 year ago

christinalc commented 1 year ago

Hi, thank you for making this! I am trying to test the model by inputting my own SVG glyphs and with the goal of returning the results in the experiments folder. However, I can't figure out how to input my own data. From my understanding, the current test data is coming from data/vecfont_dataset_dirs/test/test_all.pkl. Do I need to format my data as a .pkl file? How can I achieve this?

yizhiwang96 commented 1 year ago

Hi,

Currently we support building dataset from TTFs/OTFs, please see this instruction for details.

(1) For quick use, you can first convert SVGs into TTFs/OTFs and then run our code. Tools are like SVG2TTF, SVG2OTF.

(2) Another way is to convert SVG into our data format (Fig. 4 in our paper), which could take some time to write the code.

We released the code of few-shot generation. For interpolations and random generation, it is easy to implement by refering to the few-shot generation code.

christinalc commented 1 year ago

Thank you for the reply, I will try it!