MCPcopy Index your code
hub / github.com/vladmandic/sdnext / process_post

Function process_post

modules/processing_diffusers.py:116–133  ·  view source on GitHub ↗
(p: processing.StableDiffusionProcessing)

Source from the content-addressed store, hash-verified

114
115
116def process_post(p: processing.StableDiffusionProcessing):
117 from modules import ipadapter, hidiffusion, ras, pag, cfgzero, token_merge, linfusion, cachedit
118 log.info('Processing modifiers: unapply')
119
120 try:
121 sd_models_compile.check_deepcache(enable=False)
122 ipadapter.unapply(shared.sd_model, unload=getattr(p, 'ip_adapter_unload', False))
123 token_merge.remove_token_merging(shared.sd_model)
124 hidiffusion.unapply()
125 ras.unapply(shared.sd_model)
126 pag.unapply()
127 cfgzero.unapply()
128 linfusion.unapply(shared.sd_model)
129 cachedit.unapply_cache_dir(shared.sd_model)
130 except Exception as e:
131 log.error(f'Processing unapply: {e}')
132 errors.display(e, 'unapply')
133 timer.process.record('post')
134
135
136def process_base(p: processing.StableDiffusionProcessing):

Callers 2

process_baseFunction · 0.85
process_hiresFunction · 0.85

Calls 3

infoMethod · 0.80
displayMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected