计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
stylegan-human-manipulation【效率与协作】Guides StyleGAN-Human alignment, background preprocessing, PTI inversion, latent-direction editing, real-image workflows, InsetGAN, and asset preflight.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route for human-image preparation and editing rather than basic generation: whitening backgrounds, aligning raw photos, inverting real images with PTI, applying upper_length/bottom_length edits, or composing face/body images with InsetGAN.
Run the preflight helper before touching model code:
python sub-skills/stylegan-human-manipulation/scripts/check_stylegan_human_assets.py \
--repo-root /path/to/DragGAN \
--check-alignment --check-pti --check-editing --check-insetgan
Missing assets are expected in a fresh checkout. Do not replace a missing model, latent direction, or segmentation file with a random download.
bg_white.py.upper_length or bottom_length.The bundled helper is self-contained and CPU-safe:
python sub-skills/stylegan-human-manipulation/scripts/bg_white.py \
--raw-img-dir raw_images --raw-seg-dir masks --outdir white_background
It requires matching filenames and writes one output per valid raw/mask pair. Use a tiny fixture first; the helper returns non-zero when no pair can be processed.
For real-image editing, keep the order explicit: raw image -> alignment -> PTI/e4e inversion -> attribute edit. PTI path and global settings are file-based in the source workflow, so use the reference checklist and preflight helper before launching a long CUDA optimization.