跳到正文
DEV Community· AI-KSK·· 46 分鐘前AI 評分46

ComfyUI-NAG 為 Chroma、Wan、Flux 及 Kontext 加入專用負向引導

ComfyUI-NAG: dedicated negative guidance across Chroma, Wan, Flux and Kontext

AI 導讀

ComfyUI-NAG 為擴散模型加入專用負向引導路徑,測試顯示它在圖像生成上的提升最明顯,對已加速的影片生成效果較小。Chroma 的角色肢體結構改善最突出,SD 3.5 Turbo 亦受惠於這條路徑。NAG 會拖慢生成速度,亦可能引發元件不相容,較適合用於圖像生成。

正文

AI-KSK

ComfyUI-NAG adds a dedicated negative-guidance path to diffusion models. The episode tests it on Chroma, SD 3.5 Turbo, Wan, Flux, and Kontext, and finds the strongest gains on image generation rather than accelerated video.

Watch the episode: https://youtu.be/X12QfoLN37w
Chinese original: https://www.bilibili.com/video/BV1Jnb9z6E6e

How the graph changes

The example uses three text encoders: one for the positive prompt, one for the ordinary negative prompt, and one for NAG-specific negative guidance. Models that already support negative prompts can combine both paths; models that do not can leave the ordinary negative input empty.

Parameter order

First tune the CFG-related rows so the image is structurally valid. Then raise the NAG strength values to increase the negative effect. The last value controls when NAG ends; the episode recommends the default rather than 1 because ending at full strength can reduce quality.

Observed results

  • Chroma plus NAG produced the strongest sushi-character result, especially in limb structure.
  • SD 3.5 Turbo, which lacks native negative prompting, benefited from the NAG negative path.
  • Wan video showed more sushi in the background and could turn the whole figure into sushi when NAG started at step zero, but the overall difference was smaller.
  • Flux results aligned better with the prompt and looked cleaner.
  • Kontext's negative prompt became more effective, though the word "fire" still did not produce the intended result reliably.

Costs

NAG is slower and may introduce component incompatibilities. The episode recommends it more strongly for image generation than for already-accelerated video workflows.

Known limits

  • Negative guidance cannot fix a prompt the model does not understand.
  • Higher strength is not always better; structural validity comes first.
  • Wan's result was less consistent than the image-model tests.
  • No workflow JSON or weights are bundled with this article.

來源:DEV Community · dev.to