mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
- all guidance values set to -1 to enable using model defaults
- log default values used if not overriden by user - rename inconsistent guidance variables: p.cfg_scale p.image_cfg_scale -> p.cfg_image p.diffusers_guidance_rescale -> p.cfg_rescale p.pag_scale -> p.cfg_true p.pag_adaptive -> p.cfg_adaptive Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -117,7 +117,7 @@ def diffusers_callback(pipe, step: int = 0, timestep: int = 0, kwargs: dict | No
|
||||
pipe._cfg_end_applied = True # pylint: disable=protected-access
|
||||
if "PAG" in shared.sd_model.__class__.__name__:
|
||||
pipe._guidance_scale = 1.001 if pipe._guidance_scale > 1 else pipe._guidance_scale # pylint: disable=protected-access
|
||||
pipe._pag_scale = 0.001 # pylint: disable=protected-access
|
||||
pipe._cfg_true = 0.001 # pylint: disable=protected-access
|
||||
else:
|
||||
pipe._guidance_scale = 0.0 # pylint: disable=protected-access
|
||||
for key in ["prompt_embeds", "negative_prompt_embeds", "add_text_embeds", "add_time_ids"]:
|
||||
|
||||
Reference in New Issue
Block a user