AGENT SKILL

paddlecv

Use for PaddlePaddle models repo PaddleCV and ppcv inference, task-name pipelines, model catalog checks, and custom operator graph workflows.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
paddlecv
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use for PaddlePaddle models repo PaddleCV and ppcv inference, task-name pipelines, model catalog checks, and custom operator graph workflows.
disable-model-invocation
true

02 资源文件 8

03 SKILL.md 正文

PaddleCV

Use this skill for PaddlePaddle paddlecv / ppcv workflows: single-model vision inference, task-name driven system pipelines, and custom operator or DAG extension. It is a router, not a full manual.

Read first

  • references/task-catalog.md for the supported task families and config paths.
  • references/api-reference.md for the public PaddleCV, Pipeline, registry, and config APIs.
  • references/workflows.md for the common inference and extension routes.
  • references/troubleshooting.md when imports, downloads, configs, or runtime checks fail.
  • scripts/smoke_import.py for a quick package/catalog smoke check.

Route map

User intent Read
Run a single image model from a config file sub-skills/single-model-inference/SKILL.md
Use PaddleCV(task_name=...) or OCR / PP-Structure / ShiTu / Human / Vehicle / TinyPose / IE / SA / TTS pipelines sub-skills/system-pipelines/SKILL.md
Add, adapt, or debug a custom operator, connector, output, or config graph sub-skills/custom-ops/SKILL.md
Check the package import, supported tasks, or catalog without running inference scripts/smoke_import.py and references/task-catalog.md

Shared runtime facts

  • Public import surface: paddlecv.PaddleCV, ppcv.engine.pipeline.Pipeline, ppcv.model_zoo.get_config_file, ppcv.model_zoo.get_model_file, ppcv.model_zoo.list_model.
  • Config-driven inference reads paddlecv/configs/single_op/*.yml and paddlecv/configs/system/*.yml through Pipeline(config_path=...).
  • Task-name inference reads the built-in TASK_DICT through PaddleCV(task_name=...).
  • Runtime downloads use the paddlecv:// scheme and cache under ~/.cache/paddlecv/{models,configs,dicts,fonts}.
  • Package import also pulls in ppcv.ops.models.nlp and ppcv.ops.models.speech, so paddlenlp and paddlespeech are part of the practical import surface.

Use these helpers

  • Run scripts/run_predict.py when you need one bundled entry point for config-based or task-name inference.
  • Run scripts/smoke_import.py to confirm the package, catalog, and public constructor shape before deeper debugging.

Install and compatibility notes

  • Keep paddle, cv2, numpy, paddlenlp, paddlespeech, and the package's image/runtime dependencies aligned.
  • If pkg_resources is missing, install a setuptools version that still provides it.
  • If paddlenlp fails on aistudio_sdk.hub.download, use an aistudio-sdk release that still exports that helper.
  • If OpenCV complains about NumPy ABI mismatches, use a NumPy 1.x build that matches the OpenCV wheel.
  • If retrieval or ShiTu-style workflows fail, check faiss compatibility for your Python version.

What not to do here

  • Do not treat the root skill as the place for custom-op implementation details or per-model API tables.
  • Do not route pure training or tutorial reproduction work here.
  • Do not rely on source checkout paths inside runtime instructions; use bundled references and scripts instead.

If something breaks

Start with references/troubleshooting.md, then use the owning sub-skill. Most failures are one of: missing package dependencies, cache/download problems, config graph mismatches, or backend/version incompatibility.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351