forked from Sanster/text_renderer
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathnormal.Makefile
More file actions
35 lines (27 loc) · 3.32 KB
/
Copy pathnormal.Makefile
File metadata and controls
35 lines (27 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
OUTPUT_DIR = output_normal
CONFIG_YAML = configs/default_new.yaml
CN_FONTS_LIST = data/fonts_list/chn_normal.txt
CN_CHARS_FILE = data/chars/chn.txt
EN_FONTS_LIST = data/fonts_list/eng_normal.txt
EN_CHARS_FILE = data/chars/eng.txt
gen-number:
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag number --corpus_mode random --chars_file data/chars/number.txt --fonts_list $(EN_FONTS_LIST) --length 20 --clip_max_chars --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag number --corpus_mode random --chars_file data/chars/number2.txt --fonts_list $(EN_FONTS_LIST) --length 20 --clip_max_chars --strict --space_ratio 0 --num_img 300000
gen-eng:
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag eng --corpus_mode eng --chars_file $(EN_CHARS_FILE) --corpus_dir data/corpus/words.txt --fonts_list $(EN_FONTS_LIST) --img_width 280 --length 20 --clip_max_chars --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag eng --corpus_mode eng --chars_file $(EN_CHARS_FILE) --corpus_dir data/corpus/words.txt --fonts_list $(EN_FONTS_LIST) --img_width 420 --length 30 --clip_max_chars --strict --space_ratio 0 --num_img 300000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag eng --corpus_mode eng --chars_file $(EN_CHARS_FILE) --corpus_dir data/corpus/words.txt --fonts_list $(EN_FONTS_LIST) --img_width 560 --length 40 --clip_max_chars --strict --space_ratio 0 --num_img 500000
gen-chn:
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn --corpus_mode random --chars_file $(CN_CHARS_FILE) --fonts_list $(CN_FONTS_LIST) --img_width 280 --length 10 --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn --corpus_mode random --chars_file $(CN_CHARS_FILE) --fonts_list $(CN_FONTS_LIST) --img_width 336 --length 12 --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn --corpus_mode random --chars_file $(CN_CHARS_FILE) --fonts_list $(CN_FONTS_LIST) --img_width 392 --length 14 --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn --corpus_mode random --chars_file $(CN_CHARS_FILE) --fonts_list $(CN_FONTS_LIST) --img_width 448 --length 16 --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn --corpus_mode random --chars_file $(CN_CHARS_FILE) --fonts_list $(CN_FONTS_LIST) --img_width 504 --length 18 --strict --space_ratio 0 --num_img 200000
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn --corpus_mode random --chars_file $(CN_CHARS_FILE) --fonts_list $(CN_FONTS_LIST) --img_width 560 --length 20 --strict --space_ratio 0 --num_img 2000000
gen-chn-sents:
python main.py --config_file $(CONFIG_YAML) --output_dir $(OUTPUT_DIR) --tag chn-sents --corpus_mode chn \
--chars_file $(CN_CHARS_FILE) --corpus_dir data/corpus/wiki_zh.txt --fonts_list $(CN_FONTS_LIST) \
--img_width 560 --length 20 --strict --space_ratio 0 --num_img 1000000
tar:
tar zcvf $(OUTPUT_DIR).tar.gz $(OUTPUT_DIR)
.PHONY: gen-number gen-eng gen-chn gen-chn-sents tar