计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
pipelines【效率与协作】Use PaddleX pre-trained pipelines through create_pipeline, the paddlex pipeline CLI, config export, prediction, result saving, devices, engines, and parallel inference.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to run or configure a pre-trained PaddleX pipeline: image/CV pipelines, OCR/document pipelines, time-series pipelines, speech/video pipelines, retrieval/face pipelines, 3D pipelines, or VLM/document-understanding pipelines.
Route away from this sub-skill when the task is:
create_model usage — use ../modules/.../deployment/.from paddlex import create_pipeline.paddlex --pipeline ... or paddlex --get_pipeline_config ....Read references/pipeline-catalog.md for supported family names, common workflow patterns, and output behavior. Read references/pipeline-troubleshooting.md when pipeline creation, input parsing, result saving, backend selection, or remote service setup fails.
from paddlex import create_pipeline
pipeline = create_pipeline(
pipeline="image_classification", # or a local YAML path / config dict
device="cpu",
)
for result in pipeline.predict("demo.jpg"):
result.print()
result.save_to_json("output")
result.save_to_img("output")
Verified installed signature for PaddleX 3.7.2:
create_pipeline(pipeline=None, *, config=None, device=None, engine=None,
engine_config=None, pp_option=None, use_hpip=None,
hpi_config=None, **kwargs) -> BasePipeline
Important precedence rule: explicit Python/CLI arguments such as device, engine, use_hpip, engine_config, or pipeline-specific keyword arguments override defaults from a named pipeline or exported YAML config.
# Export a built-in pipeline config before editing it.
paddlex --get_pipeline_config image_classification
# Run prediction from the CLI.
paddlex --pipeline image_classification --input demo.jpg --save_path output --device cpu
# Use a local YAML config.
paddlex --pipeline ./pipeline.yaml --input demo.jpg --save_path output
Use scripts/run_pipeline_smoke.py when you need a small reusable wrapper that checks importability, creates a pipeline, runs predict, and tries common save methods without depending on the original PaddleX checkout.
Examples:
python scripts/run_pipeline_smoke.py --dry-run
python scripts/run_pipeline_smoke.py --pipeline image_classification --input demo.jpg --save-path output --device cpu
python scripts/run_pipeline_smoke.py --pipeline OCR --input demo.png --save-path output/ocr --kwargs-json '{"use_doc_orientation_classify": false}'
The helper may trigger model downloads when you create a real pipeline. Use --dry-run for a no-download install/API check.
OCR, PP-StructureV3, PaddleOCR-VL).PP-DocTranslation, PP-ChatOCRv4, PaddleOCR-VL variants)? If yes, route deployment details to ../deployment/.../deployment/ even if the source object is a pipeline.