executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
python-api-and-configUse SUPIR's Python APIs, model/config objects, image/tensor helpers, and LLaVA caption bridge without running batch scripts or demos.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task asks how to import SUPIR modules, construct a
SUPIR model, inspect YAML config behavior, call batchify_sample, use the
LLaVA caption bridge, convert images/tensors, validate dtype choices, or debug
API-level import/config errors.
Do not use this sub-skill for folder CLI orchestration or browser UI launch. Route those to ../batch-restoration/SKILL.md and ../interactive-demos/SKILL.md.
--signatures.
Add --skip-llava when captioning is intentionally out of scope.--config <path> and the
root checkpoint validator before create_SUPIR_model.LLavaAgent import and
checkpoint variables first; do not instantiate the agent without the model
path and CUDA plan.SUPIR.util.create_SUPIR_model(config_path, SUPIR_sign=None, load_default_setting=False) loads YAML, SDXL, optional SUPIR base, and Q/F checkpoints.SUPIRModel.batchify_denoise(x, is_stage1=False) denoises RGB tensors in [-1, 1].SUPIRModel.batchify_sample(...) runs the restoration sampler with prompt,
CFG, control, color-fix, and seed controls.SUPIRModel.init_tile_vae(encoder_tile_size=512, decoder_tile_size=64) adds tiled VAE hooks.LLavaAgent(model_path, device='cuda', conv_mode='vicuna_v1', load_8bit=False, load_4bit=False) wraps local LLaVA captioning.batchify_sample, the source model
asserts batch size one.python sub-skills/python-api-and-config/scripts/supir_api_probe.py --signatures --check-cuda
python sub-skills/python-api-and-config/scripts/supir_api_probe.py --signatures --skip-llava
python sub-skills/python-api-and-config/scripts/supir_api_probe.py --config path/to/SUPIR_v0.yaml
These commands inspect imports, signatures, and config metadata only. They do
not call create_SUPIR_model or load checkpoints.