Ir para o conteúdo
Node packVerificadoExterno
Fonte aberta

ComfyUI-semantic-aware-guidance

Unofficial implementation of Semantic-aware Guidance (S-CFG) for ComfyUI

Mantenedor@shiimizuUnratednota

Perfil do pacote

Status
Verificado
Publicador
@shiimizu
Fonte
GitHub

README

Semantic-aware Guidance (S-CFG)

ComfyUI node for Semantic-aware Guidance based on the paper "Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidance"

Paper | Code | sd-webui-incantations (SD-WebUI extension)

Dynamically rescale CFG guidance per semantic region to a uniform level to improve image / text alignment.

Other details:

  • Computationally expensive. Large resolutions (like on an upscale pass) can trigger OOM.
  • made to work with other resolutions
  • made to work with SDXL (based on guesswork, since the original paper/code didn't mention SDXL)
  • only works for models with a U-Net backbone (i.e. SD1.x - SDXL)
  • uses sampler_cfg_function (there can only be one node active using this, so it may conflict with other nodes using the same thing)

Installation

You can either:

  • In a termnial, run: git clone https://github.com/shiimizu/ComfyUI-semantic-aware-guidance.git into your ComfyUI/custom_nodes/ folder.

  • Install it via ComfyUI Manager (search for custom node named "s-cfg").

Nós neste pacote

Nó 1
  • SemanticAwareGuidance

Fontes

3 fontes
GitHubFonteVersão 8600574742a339e061678f7c3f457fcf3c91242f
github.com/shiimizu/ComfyUI-semantic-aware-guidance

Verificado 3 de out.

Trechos de fonte

1 trecho

Source context: Repo shiimizu/ComfyUI-semantic-aware-guidance