AGENT SKILL

interactive-deep-colorization

Routes agents using Interactive Deep Colorization for local-hints image colorization, model setup, GUI/API workflows, and Caffe global histogram transfer.

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

01 前言 Front Matter

name
interactive-deep-colorization
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes agents using Interactive Deep Colorization for local-hints image colorization, model setup, GUI/API workflows, and Caffe global histogram transfer.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

interactive-deep-colorization

Use this repo skill when a task names Interactive Deep Colorization, iDeepColor, the SIGGRAPH 2017 real-time user-guided colorization code, local color hints, ab-mask guided image colorization, the PyQt colorization GUI, converted PyTorch weights, Caffe model artifacts, or global histogram transfer with a reference image.

Start here

  1. Identify whether the user is asking about setup, local-hints colorization, or global histogram transfer.
  2. Read the matching sub-skill before giving commands or API guidance.
  3. Check references/troubleshooting.md when the request includes import failures, missing weights, display/Qt errors, Caffe/PyTorch confusion, or stale-checkout questions.
  4. Check references/repo-provenance.md before deciding whether this skill matches a different checkout or should be refreshed.

Route map

User intent Read
Install dependencies, choose Caffe/PyTorch/Docker, stage model weights, validate expected artifacts, or diagnose setup blocks sub-skills/setup-and-models/SKILL.md
Run or explain the local-hints GUI, reproduce the barebones notebook flow, build input_ab/input_mask, inspect CLI defaults, use color suggestions, or interpret saved output artifacts sub-skills/interactive-colorization/SKILL.md
Use a reference image's global color histogram, explain ColorizeImageCaffeGlobDist, validate global model assets, or troubleshoot global histogram notebook behavior sub-skills/global-histogram-transfer/SKILL.md

Quick setup

If you need a fresh inspection environment for the local-hints or setup workflows, create one with the scientific image stack and PyTorch first, then validate the selected workflow with the bundled helpers:

python3.11 -m venv /path/to/inspection-env
/path/to/inspection-env/bin/python -m pip install numpy scipy scikit-image scikit-learn matplotlib opencv-python-headless torch
/path/to/inspection-env/bin/python sub-skills/interactive-colorization/scripts/smoke_core_helpers.py --repo-root /path/to/checkout --size 8

If the task is about missing weights or backend choice, check the bundled artifact and CLI inspectors before attempting a GUI or notebook launch:

/path/to/inspection-env/bin/python sub-skills/setup-and-models/scripts/check_model_artifacts.py --repo-root /path/to/checkout --workflow all
/path/to/inspection-env/bin/python sub-skills/interactive-colorization/scripts/inspect_cli_defaults.py --variant both --json

Repository shape and install expectations

Interactive Deep Colorization is a research-demo checkout rather than a packaged Python distribution. There is no setup.py, pyproject.toml, or console entry point. Future agents should treat the repository root as the import root when working with a live checkout, and should prepare dependencies according to the selected workflow rather than installing every historical script.

Minimum conceptual setup:

  • Scientific image stack: NumPy, SciPy, scikit-image, scikit-learn, OpenCV, and Matplotlib/notebook tools when using notebook recipes.
  • Caffe path: PyCaffe with Python layer support plus Caffe model weights.
  • PyTorch path: PyTorch plus models/pytorch/caffemodel.pth or another compatible checkpoint.
  • GUI path: PyQt4/qdarkstyle for the root script, or PyQt5 through the Docker variant.
  • Global histogram transfer: Caffe-only global weights and stats model assets.

Important limitations

  • Training code is not part of this checkout; the README points training to a separate PyTorch reimplementation repository.
  • The original Caffe backend and global histogram notebook require PyCaffe and downloaded weights; this generated skill documents them but did not verify native Caffe execution during construction.
  • The GUI requires Qt bindings and a display server; use safe bundled inspectors when only parser/API facts are needed.
  • Model fetch scripts perform network downloads and are represented here by safe artifact-check helpers rather than automatic download wrappers.

Safe checks bundled in sub-skills

Use these checks when working with a live checkout or staged artifact tree; replace /path/to/checkout with the user's current repository root.

Evidence and routing metadata

  • Read references/repo-provenance.md for source commit, dirty-state summary, package/import facts, and evidence paths.
  • references/repo-routing-metadata.json contains structured scenario metadata for managed repo-skill import tools; it is data, not user-facing guidance.

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