协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
batch-restoration【开发与工程】Run and troubleshoot SUPIR folder-based restoration with test.py-style flags, prompt choices, Q/F checkpoints, CUDA device planning, and safe dry-run validation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants a command-line or scripted folder
restoration workflow: input images in a directory, output PNGs in a save
directory, SUPIR_sign selection, quality/fidelity flags, manual prompts,
--no_llava, or a test.py-style run.
For API-only questions, route to ../python-api-and-config/SKILL.md. For Gradio/browser, tiled local-prompt, or face workflows, route to ../interactive-demos/SKILL.md.
--run is explicitly passed.Q for default high-quality restoration or F for fidelity under
light degradation.--no_llava for manual
or empty prompts when LLaVA checkpoints are absent.python sub-skills/batch-restoration/scripts/supir_batch_restore.py \
--img_dir inputs --save_dir outputs --SUPIR_sign Q --upscale 2 --dry-run
--run after the dry run shows the intended config, devices,
prompts, and output path.<input_stem>_<sample_index>.png.[-1, 1], working sizes rounded to
multiples of 64.--no_llava is used.| Decision | Preferred route |
|---|---|
| Missing LLaVA or second GPU | Use --no_llava or --load_8bit_llava; provide manual context in prompts when possible. |
| Large images / memory pressure | Use --use_tile_vae and consider the interactive tiled route for local prompts. |
| Better visual appeal | Try higher s_cfg, larger spt_linear_CFG, and s_stage2 slightly below 1.0 after validating seed/config. |
| Better fidelity | Use SUPIR_sign F for light degradation, lower guidance, and s_stage2=1.0. |
| Reproducibility | Set --seed and record checkpoint variants, prompt suffixes, and color-fix mode. |