add callback after_extra_networks_activate

This commit is contained in:
w-e-w
2023-06-19 15:37:20 +09:00
parent 59419bd64a
commit 9c2a7f1e8b
2 changed files with 26 additions and 0 deletions

View File

@@ -103,6 +103,9 @@ def activate(p, extra_network_data):
except Exception as e:
errors.display(e, f"activating extra network {extra_network_name}")
if p.scripts is not None:
p.scripts.after_extra_networks_activate(p, batch_number=p.iteration, prompts=p.prompts, seeds=p.seeds, subseeds=p.subseeds, extra_network_data=extra_network_data)
def deactivate(p, extra_network_data):
"""call deactivate for extra networks in extra_network_data in specified order, then call