executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
inferenceUse pretrained easy12306 artifacts for end-to-end 12306 captcha inference, single image-tile prediction, and prerequisite validation.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.