L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

python-api

python-api

Programmatic Python API for the colorizers package: constructors, preprocessing/postprocessing helpers, tensor shape contracts, SIGGRAPH hints, and no-download smoke checks.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: python-api description: "Programmatic Python API for the colorizers package: constructors, preprocessing/postprocessing helpers, tensor shape contracts, SIGGRAPH hints, and no-download smoke checks." disable-model-invocation: true metadata: disco-role: operating license: BSD 2-Clause

colorization Python API

Use this sub-skill when the task is to use the colorizers package from Python: imports, model constructors, forward calls, Lab preprocessing/postprocessing helpers, tensor/data shape contracts, SIGGRAPH hint inputs, or no-download API smoke checks.

Start here

Routing

  • Stay in this sub-skill for programmatic model construction, helper-function use, forward-signature questions, tensor shape/range debugging, and smoke tests that avoid pretrained downloads.
  • For end-to-end image-file colorization, CLI invocation, saving output images, or batch output management, use the sibling automatic-colorization sub-skill instead.
  • Training workflows and the unsupported Caffe branch are out of scope.

Safety defaults

  • Use eccv16(pretrained=False) and siggraph17(pretrained=False) for import/API tests that must not access the network.
  • Calling eccv16() or siggraph17() without arguments requests pretrained weights because both wrappers default pretrained=True.
  • Keep model tensors, L tensors, SIGGRAPH hint tensors, and masks on the same device before forward; move model outputs to CPU before postprocessing when needed.
Skills enregistrées