计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
inference【效率与协作】Use GFPGAN for face-restoration inference, model-version selection, aligned crop handling, GFPGANer API calls, and inference troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user wants to restore faces from a photo, folder, aligned crop, or application pipeline with GFPGAN.
1, 1.2, 1.3, 1.4, and RestoreFormer.--aligned, --only-center-face, --suffix, --ext, --weight, or background upsampling.gfpgan.GFPGANer from Python code.../training/.../../references/installation.md and ../../references/troubleshooting.md.Prefer the bundled helper when you need a safe, explicit inference run that does not auto-download weights by default:
python sub-skills/inference/scripts/run_inference.py \
--input /path/to/input.jpg \
--output outputs/gfpgan \
--model-path /path/to/GFPGANv1.4.pth \
--version 1.4 \
--upscale 2 \
--no-bg-upsampler
For already aligned face crops:
python sub-skills/inference/scripts/run_inference.py \
--input /path/to/aligned-crops \
--output outputs/gfpgan-crops \
--model-path /path/to/GFPGANv1.3.pth \
--version 1.3 \
--aligned \
--ext png
references/workflows.md: end-to-end CLI and API recipes, output layout, and validation steps.references/cli-reference.md: verified command-line flags, defaults, and model path behavior.references/model-selection.md: version/architecture tradeoffs, checkpoint filenames, and background upsampler decisions.references/troubleshooting.md: inference-specific failures and recovery actions.scripts/run_inference.py: safe GFPGAN inference wrapper with explicit checkpoint handling and no network download unless requested.scripts/check_env.py: inference-focused import/signature/backend check that avoids loading model weights.version=1.4 or 1.3 for most modern clean inference requests unless the user specifically needs 1.2, the original paper model 1, or RestoreFormer.--aligned only when inputs are already aligned face crops; for whole photos, leave it off so GFPGAN detects and pastes faces back.--no-bg-upsampler when the user only needs face restoration or is on CPU. Add Real-ESRGAN only when non-face background upsampling is a real requirement.