ComfyOnline
Automatic-CFG-Custom-attentions

ComfyUI Node: Automatic CFG - Custom attentions

Authored by Extraltodeus

Created 9 months ago

Updated 2 months ago

350 stars

Category

model_patches/Automatic_CFG/experimental_attention_modifiers

Inputs

model MODEL

Auto_CFG BOOLEAN

cond_mode

  • replace_by_custom
  • normal+(normal-custom_cond)*multiplier
  • normal+(normal-custom_uncond)*multiplier

uncond_mode

  • replace_by_custom
  • normal+(normal-custom_cond)*multiplier
  • normal+(normal-custom_uncond)*multiplier

cond_diff_multiplier FLOAT

uncond_diff_multiplier FLOAT

uncond_sigma_end FLOAT

save_as_preset BOOLEAN

preset_name STRING

attn_mod_for_positive_operation ATTNMOD

attn_mod_for_negative_operation ATTNMOD

Outputs

MODEL

Extension: ComfyUI-AutomaticCFG

My own version 'from scratch' of a self-rescaling CFG. It isn't much but it's honest work. TLDR: set your CFG at 8 to try it. No burned images and artifacts anymore. CFG is also a bit more sensitive because it's a proportion around 8. Low scale like 4 also gives really nice results since your CFG is not the CFG anymore. Also in general even with relatively low settings it seems to improve the quality.

Authored by Extraltodeus

related extension: