跳到正文
cccskills
免费在 GitHub 公开

colorization

Use richzhang/colorization PyTorch colorizers for automatic image colorization, Python API calls, preprocessing/postprocessing, and runtime troubleshooting.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(15)

  • SKILL.md4.5 KB
  • references/installation.md2.8 KB
  • references/repo-provenance.md1.8 KB
  • references/repo-routing-metadata.json327 B
  • references/troubleshooting.md3.2 KB
  • scripts/check_env.py6.6 KB
  • sub-skills/automatic-colorization/references/troubleshooting.md4.2 KB
  • sub-skills/automatic-colorization/references/workflows.md6.4 KB
  • sub-skills/automatic-colorization/scripts/colorize_image.py9.3 KB
  • sub-skills/automatic-colorization/SKILL.md1.7 KB
  • sub-skills/python-api/references/api-reference.md6.0 KB
  • sub-skills/python-api/references/data-formats.md4.5 KB
  • sub-skills/python-api/references/troubleshooting.md4.6 KB
  • sub-skills/python-api/scripts/api_smoke.py12.4 KB
  • sub-skills/python-api/SKILL.md1.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

colorization

Use this repo skill when a task involves the richzhang/colorization PyTorch release for automatic image colorization, ECCV16/SIGGRAPH17 pretrained colorizers, image-to-PNG demo workflows, or the colorizers Python API.

Read first

Route by task

User intentRoute
Colorize one image and save output PNG files.sub-skills/automatic-colorization/
Recreate the release demo without opening a GUI window.sub-skills/automatic-colorization/
Choose ECCV16 vs SIGGRAPH17, CPU vs CUDA, or debug pretrained model downloads.sub-skills/automatic-colorization/
Import colorizers in Python, inspect constructors, or run no-download API checks.sub-skills/python-api/
Use preprocess_img, postprocess_tens, Lab tensors, or SIGGRAPH hint/mask inputs.sub-skills/python-api/
Train models, reproduce the historical Caffe branch, or run representation-learning experiments.Out of scope for this PyTorch test-time checkout.

Setup snapshot

This checkout is an unpackaged Python repo: it exposes a top-level colorizers/ package but does not include pyproject.toml, setup.py, or console entry points. In normal use, clone the repo, install the runtime dependencies, and either run Python from the repo root or put the clone root on PYTHONPATH.

Correct dependency names:

python -m pip install torch numpy matplotlib pillow scikit-image ipython

argparse is part of the Python standard library. Use pillow for the PIL import and scikit-image for the skimage import.

Minimal import check:

python - <<'PY'
import colorizers
print(colorizers.eccv16(pretrained=False).__class__.__name__)
print(colorizers.siggraph17(pretrained=False).__class__.__name__)
PY

Use pretrained=False for checks that must not download model weights. Quality colorization with the wrapper defaults uses pretrained weights and may download public files through PyTorch's model cache.

Shared diagnostic

From this skill directory, run:

python scripts/check_env.py --repo-root path/to/colorization --check-forward

The script constructs both models with pretrained=False, checks imports and dependency versions, reports whether CUDA is visible to PyTorch, and optionally runs a tiny forward pass. It does not make network calls.

Operating boundaries

  • Supported: test-time automatic image colorization, CPU execution, optional CUDA execution when the user's PyTorch install supports it, programmatic model/API use, preprocessing/postprocessing, and output-file validation.
  • Supported with caution: pretrained weight loading, because first use depends on network access or a populated PyTorch cache.
  • Not supported: training workflows, Caffe branch behavior, representation-learning evaluations, service deployment, batch dataset pipelines, or bit-for-bit output guarantees across dependency versions.

Verification stance

Prefer assertion-backed checks over visual-only judgment:

  1. Verify imports and no-download model construction.
  2. Verify preprocessing returns [1, 1, H, W] original L and [1, 1, 256, 256] resized L tensors for normal inference.
  3. Verify model output is [1, 2, H, W] Lab ab and postprocess_tens returns an RGB array matching the original image size.
  4. For quality pretrained runs, verify output PNG files are readable and match the input dimensions, then perform visual plausibility review.

Do not ask future agents to run original repo scripts as runtime instructions. Use the bundled helpers in this skill; they adapt the repo workflow without depending on construction-time paths.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题