tlc121 / FsFont

Official PaddlePaddle Implementation of Few-Shot Font Generation by Learning Fine-Grained Local Styles (FsFont)
Other
64 stars 8 forks source link

How to Inference? #17

Open yimellia opened 1 year ago

yimellia commented 1 year ago

What should be put for arguments --content_font and --img_path? Is this content_font the same directory as the content_font in build_datasets/build_trainset.sh? Should the directory contains the training content words images? What should be contained in img_path? Am I correct to put some words apart from those in content_font directory with the same font with the images in content_font?

The "charlist" of the content font is empty and also "gen_unis" is empty when I run the inference.sh. Please help.

tlc121 commented 1 year ago

What should be put for arguments --content_font and --img_path? Is this content_font the same directory as the content_font in build_datasets/build_trainset.sh? Should the directory contains the training content words images? What should be contained in img_path? Am I correct to put some words apart from those in content_font directory with the same font with the images in content_font?

The "charlist" of the content font is empty and also "gen_unis" is empty when I run the inference.sh. Please help.

content_font is the same directory you create in training phase. img_path is a directory containing bunch of reference images of a font.

yimellia commented 1 year ago

What do you mean by reference images of a font? Words of fonts in train_font in build_trainset.sh? Also, is it normal to have the "charlist" of the content font empty and "gen_unis" empty when I run the inference.sh?

tlc121 commented 1 year ago

What do you mean by reference images of a font? Words of fonts in train_font in build_trainset.sh? Also, is it normal to have the "charlist" of the content font empty and "gen_unis" empty when I run the inference.sh?

img_path is the test font images. gen_unis contains the characters u about to infer. it should not be empty...

yimellia commented 1 year ago

What does ref_unis refer to? It contains original_meta[target_name]. Are both ref_unis and gen_unis the same?