zi2zi-pytorch
zi2zi-pytorch copied to clipboard
为得到字体图片,运行命令python font2img.py --src_font=src.ttf 时报错font2img.py: error: the following arguments are required: --mode 请问这个问题该如何解决呢?
(pytorch) miao@miao:~/data/file/bwt/zi2zi-pytorch-master$ python font2img.py --src_font=src.ttf usage: font2img.py [-h] --mode {imgs2imgs,font2imgs,font2font,fonts2imgs} [--src_font SRC_FONT] [--src_fonts_dir SRC_FONTS_DIR] [--src_imgs SRC_IMGS] [--dst_font DST_FONT] [--dst_imgs DST_IMGS] [--filter] [--charset CHARSET] [--shuffle] [--char_size CHAR_SIZE] [--canvas_size CANVAS_SIZE] [--x_offset X_OFFSET] [--y_offset Y_OFFSET] [--sample_count SAMPLE_COUNT] [--sample_dir SAMPLE_DIR] [--label LABEL] font2img.py: error: the following arguments are required: --mode
要把src.ttf.换成你自己的字体文件