技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
zi2zi【数据与研究】Operate zi2zi legacy Chinese/Japanese/Korean font style transfer workflows: paired glyph data preparation, TensorFlow 1.x training, inference, interpolation, and generator export.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task is about zi2zi, the legacy TensorFlow 1.x conditional GAN for Chinese, Japanese, Korean, or other font style transfer. The skill is a router plus compact operating context; read the linked sub-skills for concrete commands, data formats, validation checks, and troubleshooting.
train.obj / val.obj files.For freshness checks, read repo provenance before using this skill against a different zi2zi checkout.
scipy.misc APIs work with the original scripts..obj data, or a TensorFlow checkpoint.Use an isolated legacy environment for the original zi2zi scripts. A typical Conda direction is:
conda create -n zi2zi-legacy python=2.7 pip
conda install -n zi2zi-legacy tensorflow-gpu=1.15 scipy imageio pillow functools32
Then verify parser/import readiness from a zi2zi checkout:
python font2img.py --help
python package.py --help
python train.py --help
python infer.py --help
python export.py --help
Do not run long training or checkpoint inference until the user confirms data, checkpoint paths, GPU/runtime readiness, and output locations.
| If the task is about... | Read |
|---|---|
Rendering paired glyph images, choosing CJK/custom charsets, label prefixes, packaging JPGs into .obj, or inspecting packaged data | data-preparation |
Training or fine-tuning, experiment directories, losses, label shuffling, freeze_encoder, fine_tune, checkpoints, samples, or model architecture | training-and-model |
| Generator inference, random style IDs, interpolation frames/GIFs, output image names, checkpoint restore, or generator-only export | inference-and-export |
| End-to-end flow across all stages | workflow overview |
| Legacy dependency and backend compatibility | compatibility |
| Cross-cutting failures that affect multiple stages | troubleshooting |
font2img.py semantics to render source/target glyph pairs. The target
glyph occupies the left half of each JPG, the source glyph the right half,
and the filename prefix stores the style label.package.py semantics to create train.obj and val.obj, each a stream
of pickled (label, image_bytes) records.experiment/data/train.obj and experiment/data/val.obj.train.py, which creates per-experiment checkpoint, log, and
sample directories and saves checkpoints under a batch-size-specific name.infer.py from a trained generator checkpoint, optionally interpolating
style embeddings and compiling frames into a GIF.export.py only when a generator-only checkpoint is needed for later
inference or transfer.During skill construction, safe checks covered Python 2.7 dependency imports,
all five original script --help parsers, and a CPU-hidden TensorFlow 1.15
UNet graph build. Full CUDA training and checkpoint-backed inference/export
were intentionally not run because they require user-provided fonts/data or
checkpoints and a legacy CUDA runtime budget. Preserve that distinction when
answering runtime-readiness questions.