计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
image-generation【效率与协作】Plan and troubleshoot Sana image generation workflows across Diffusers, native pipelines, Sprint, ControlNet, high-resolution tiling, quantization, and Gradio launch modes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user wants to generate or troubleshoot still images with Sana, Sana-1.5, SANA-Sprint, Sana ControlNet HED, Diffusers Sana pipelines, 4-bit/8-bit quantized inference, 2K/4K high-resolution generation, prompt-file batch inference, or Gradio image demos.
This sub-skill is for planning and operating image inference workflows. It does not own training/data conversion, benchmark metrics, checkpoint conversion, SGLang/ComfyUI deployment, video generation, world models, or streaming.
SanaPipeline, SanaPAGPipeline, or SanaSprintPipeline; read
diffusers-and-quantization.md..pth checkpoints, config YAMLs, batch prompt
files, or ControlNet HED JSON inputs, read
native-image-workflows.md.scripts/plan_sana_image_command.py prints a native command or Diffusers
snippet and warnings without loading models or starting servers.scripts/validate_controlnet_request.py checks a ControlNet JSON and
reference images/control maps without running the model or annotator..jpg/.png file was written, images open with PIL,
and sizes match the requested or aspect-ratio-binned resolution.*_diffusers model id and a
matching variant/torch_dtype pair.SanaPAGPipeline or native pag_scale > 1 with a
linear-attention config; otherwise guidance falls back to classifier-free.SanaSprintPipeline, the
Sprint .pth checkpoint/config pair, sampling_algo=scm, and usually two
steps.ref_image_path or
ref_controlmap_path; HED preprocessing requires a CUDA annotator checkpoint.Print a Diffusers PAG snippet:
python scripts/plan_sana_image_command.py \
--mode diffusers \
--diffusers-pipeline pag \
--model-family sana15 \
--prompt 'a cyberpunk cat with a neon sign that says "Sana"' \
--seed 42
Print a native batch command for a prompt text file:
python scripts/plan_sana_image_command.py \
--mode native \
--native-workflow sana \
--resolution 1024 \
--prompt-file prompts.txt \
--work-dir output/sana-run \
--sample-nums 10
Check a ControlNet request before running generation:
python scripts/validate_controlnet_request.py \
--json-file controlnet_request.json \
--config configs/sana_controlnet_config/Sana_1600M_1024px_controlnet_bf16.yaml
training-data-configs.evaluation-conversion-deployment.video-world-streaming.This sub-skill was distilled from the Sana README, installation/model-zoo/image
inference/Sprint/ControlNet/4-bit/8-bit docs; native app pipeline classes; image
inference scripts; ControlNet utility code; and config families under
configs/sana_config, configs/sana1-5_config, configs/sana_sprint_config,
configs/sana_controlnet_config, and configs/sana_app_config. These are
provenance labels only; the operating guidance above is self-contained.