neutral_prompt = importlib.import_module("extensions.sd-webui-neutral-prompt.lib_neutral_prompt.external_code", "external_code")
# ... later in code
neutral_prompt.override_cfg_rescale(0.5) # or whatever value you want
make sure to call neutral_prompt.override_cfg_rescale before the first cfg denoiser call. Tested in a script process function, it should work no matter the script order with respect to neutral prompt.
usage:
make sure to call
neutral_prompt.override_cfg_rescale
before the first cfg denoiser call. Tested in a scriptprocess
function, it should work no matter the script order with respect to neutral prompt.