mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-15 14:50:55 -08:00
add callback after_extra_networks_activate
This commit is contained in:
parent
59419bd64a
commit
9c2a7f1e8b
2 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue