技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Prepare zi2zi paired glyph images and pickle streams from source/target fonts, charsets, labels, and rendered JPG directories.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about creating or validating zi2zi input
data before training or inference. It covers the font-to-image renderer,
charset choices, label naming, JPG pair schema, train.obj/val.obj packaging,
and safe inspection of generated object files.
CN, CN_T, JP, KR, or a custom charset.font2img.py, package.py, sample_dir, label,
filter, shuffle, train.obj, val.obj, or pickled (label, bytes)
records..obj
file cannot be read.0_0000.jpg.package.py scans *.jpg files in one directory, parses labels from the
filename prefix, and writes pickled (label, image_bytes) records into
train.obj and val.obj.train.py later expects those object files under experiment/data/ unless
the user deliberately changes the experiment layout.CN, CN_T, JP, KR) or create a one-line
UTF-8 text file for a custom character set.font2img.py semantics. Use --filter=1 when the
target font may be missing glyphs, and --shuffle=1 when you want a random
sample from the charset.train.obj and val.obj with
package.py semantics.Read preprocessing-workflow.md for complete command templates, multi-font labeling, and validation steps. Read data-formats.md for exact image/object schemas and charset behavior. Read troubleshooting.md when fonts, charsets, filters, labels, or pickle streams fail.
font2img.py and package.py command templates for one
source font and one or more target fonts..obj pickle streams from Python 3 and reports record counts, labels,
byte sizes, and optional image dimensions._.--embedding_num planned for training.train.obj and val.obj both exist, even if the validation split is small.