aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-14 08:18:30 +0000
committerGitHub <noreply@github.com>2023-03-14 08:18:30 +0000
commitf9b0465c8baacd50fd90266688577ef633474ac8 (patch)
treef5667c204890b27e61c23daaa7df83850445e12d /modules/processing.py
parent58c4777cc0e2ef1c1ac76cbfbec6eab330de931a (diff)
parent4d26c7da57a621815f25929b35977bd6a3958711 (diff)
downloadstable-diffusion-webui-gfx803-f9b0465c8baacd50fd90266688577ef633474ac8.tar.gz
stable-diffusion-webui-gfx803-f9b0465c8baacd50fd90266688577ef633474ac8.tar.bz2
stable-diffusion-webui-gfx803-f9b0465c8baacd50fd90266688577ef633474ac8.zip
Merge pull request #8588 from hananbeer/fix/undefined_extra_network_data
initialize extra_network_data before use
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 06e7a440..59717b4c 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -583,6 +583,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if state.job_count == -1:
state.job_count = p.n_iter
+ extra_network_data = None
for n in range(p.n_iter):
p.iteration = n
@@ -712,7 +713,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if opts.grid_save:
images.save_image(grid, p.outpath_grids, "grid", p.all_seeds[0], p.all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p, grid=True)
- if not p.disable_extra_networks:
+ if not p.disable_extra_networks and extra_network_data:
extra_networks.deactivate(p, extra_network_data)
devices.torch_gc()