计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
image-stylization【效率与协作】Guides Fast Style Transfer evaluate.py still-image and image-directory checkpoint inference, input validation, dimensions, device choices, and output troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user has a trained Fast Style Transfer checkpoint and wants to apply it to one image or a directory of images with the bundled image stylization runtime, or when they need to debug checkpoint, image dimensions, output paths, device strings, batch size, or image IO behavior.
transform.py module, and the bundled utils.py module.Use this route for requests like:
.ckpt path?"Route away when:
Single image:
python sub-skills/image-stylization/scripts/run_image_stylization.py \
--checkpoint checkpoints/udnie \
--in-path content/stata.jpg \
--out-path outputs/stata_udnie.jpg \
--device /cpu:0 \
--batch-size 1
Directory of same-size images:
mkdir -p outputs/batch
python sub-skills/image-stylization/scripts/run_image_stylization.py \
--checkpoint checkpoints/udnie \
--in-path content/batch \
--out-path outputs/batch \
--device /gpu:0 \
--batch-size 4
Directory with mixed dimensions:
python sub-skills/image-stylization/scripts/run_image_stylization.py \
--checkpoint checkpoints/udnie \
--in-path content/mixed \
--out-path outputs/mixed \
--allow-different-dimensions
Preflight with the bundled helper:
python sub-skills/image-stylization/scripts/validate_image_stylization_inputs.py \
--checkpoint checkpoints/udnie \
--in-path content/mixed \
--out-path outputs/mixed \
--allow-different-dimensions
--in-path as either a file or a directory.--in-path is a file and --out-path is an existing directory, output uses the input basename inside that directory.--in-path is a directory, output paths are formed by joining --out-path with each top-level filename from the input directory.--allow-different-dimensions, directory mode assumes all images have the same shape as the first image.--allow-different-dimensions, the script groups images by shape and processes each shape group separately./gpu:0, but ffwd_to_img defaults to /cpu:0; choose explicitly.The bundled helper does not restore checkpoints or run the transform network. It cannot prove visual correctness, checkpoint compatibility, or TensorFlow GPU execution. It is designed to catch path, dimension, and option issues before a costly run.