fix model-recompile keep state

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-09-04 09:49:12 +02:00
parent b57d526b5b
commit 1a47736c66
14 changed files with 68 additions and 32 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ def process_pre(p: processing.StableDiffusionProcessing, phase: str | None = Non
modular_guiders.set_guider(p, phase)
else:
try:
log.info(f'Processing modifiers: phase={phase} apply')
log.info(f'Processing: modifiers=apply phase={phase}')
from modules import ipadapter, sd_hijack_freeu, para_attention, teacache, hidiffusion, ras, pag, cfgzero, transformer_cache, token_merge, linfusion, cachedit
# apply-with-unapply
# sd_hijack_compile.install()
@@ -112,7 +112,7 @@ def process_post(p: processing.StableDiffusionProcessing):
else:
try:
from modules import ipadapter, hidiffusion, ras, pag, cfgzero, token_merge, linfusion, cachedit
log.info('Processing modifiers: unapply')
log.info('Processing: modifiers=unapply')
sd_models_compile.check_deepcache(enable=False)
ipadapter.unapply(shared.sd_model, unload=getattr(p, 'ip_adapter_unload', False))
token_merge.remove_token_merging(shared.sd_model)