mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
add before process callback
This commit is contained in:
@@ -572,6 +572,8 @@ def print_profile(profile, msg: str):
|
||||
def process_images(p: StableDiffusionProcessing) -> Processed:
|
||||
if not hasattr(p.sd_model, 'sd_checkpoint_info'):
|
||||
return None
|
||||
if p.scripts is not None:
|
||||
p.scripts.before_process(p)
|
||||
stored_opts = {}
|
||||
for k, v in p.override_settings.copy().items():
|
||||
orig = shared.opts.data.get(k, None) or shared.opts.data_labels[k].default
|
||||
|
||||
Reference in New Issue
Block a user