计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
inference【效率与协作】Use pretrained easy12306 artifacts for end-to-end 12306 captcha inference, single image-tile prediction, and prerequisite validation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This sub-skill is a router and operating guide for using existing easy12306 inference artifacts. It distills the script behavior needed to run or diagnose inference without reopening the source checkout.
row col label for eight tiles..npz construction: use data-preparation.model.h5 regeneration: use text-modeling.12306.image.model.h5 regeneration: use image-modeling.A runnable inference directory needs these files beside the public scripts, or equivalent paths supplied by an adapter:
model.h5 — text prompt classifier.12306.image.model.h5 — 80-class image-tile classifier.texts.txt — UTF-8 label vocabulary with exactly 80 non-empty rows.67x67 tiles under the easy12306 crop loop.The root integration may provide more artifact context in ../../references/model-artifacts.md and label semantics in ../../references/label-vocabulary.md.
Use the bundled checker before loading TensorFlow/Keras models:
python3 scripts/check_inference_assets.py \
--captcha-image <img.jpg> \
--text-model model.h5 \
--image-model 12306.image.model.h5 \
--labels-file texts.txt
The checker is safe by default: it verifies paths, labels, image readability, text-crop geometry, and eight tile crops without loading models. Add --load-models only when the user explicitly wants to validate Keras/TensorFlow loading.
When artifacts pass validation and the user wants actual predictions, use the self-contained adapter instead of depending on a source checkout:
python3 scripts/run_inference.py captcha \
--captcha-image <img.jpg> \
--text-model model.h5 \
--image-model 12306.image.model.h5 \
--labels-file texts.txt
baidu.py; it performs token acquisition at import time with placeholder credentials.mlearn_for_image.py imports keras.preprocessing.image.ImageDataGenerator at module import time.