New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
about training #3
Comments
Hi, thanks for your interest in our work. The truetype font files (.ttf) and decomposition information file (.json) are needed to train the model. |
I steped through the TTFTrainDataset(especially the function init() and getitem()) in the project code, and the some varaibles values were recorded. Their values were summarized in the following: font : MaShanZheng-Regular.ttf, ZCOOLKuaiLe-Regular.ttf data_list: [('MaShanZheng-Regular', '一'), ...], length: 12892 |
Hi, thanks for your reply. I want to use few-shot reference glyphs to train model for generating a personal font library. What confuses me is reference images that paper metioned . Figure 1 and Table 1 presenting results with using only four reference images, so I think there should be four style images as model input for training. But the code project was not like that as expected. I red the paper and run the project code many times, wish good reply and proper explaination. Many thanks. |
Hi, I think that you are trying to generate the glyph images from your own font file. Is it right? Note that, our model is able to generate new fonts without additional training. For the generation, 1) reference style images (.png), 2) a font file to use as source (.ttf), 3) character list to generate (.txt, optional) are needed. Sorry for the confusion. |
Many thanks for your timely reply. Provided that I have some my handwritten character images, it is by learning their features that the mxfont model finally can generate integral font library with my handwritten character features. Is it right? So, I want to figure out how to train mxfont model with some my handwritten character images. |
I used data directory and default configuration to trained mxfont model. The trained result was in following: In the evaluation, 300000.pth was used for model weights and Hanyi four style images were generated with Hanyi Senty Candy-color.ttf file (from https://www.sentyfont.com/candy.htm). The result went bad. |
@XuyangPan If you want to create your own font using a few samples (as 4 characters in our paper), you don't have to train or fine-tune anything. But I presume that you train something (so you have 30000.pth) that is not correct way to use MX-Font inference. Please just follow https://github.com/clovaai/mxfont#test again for the details, and please check whether you correctly run
|
@SanghyukChun @8uos With the help of your kind reply, I figured out application scenario of mxfont model and how to generate target character image. Hope you enjoy your life. |
Closing the issue, assuming the problem is resolved. |
Thanks for your amazing work. I tried to train mxfont model following the default configuration, but how I get reference image and what the dataset format is.
please give the detail description.
Thanks.
The text was updated successfully, but these errors were encountered: