diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-18 16:03:37 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-18 16:03:37 +0000 |
commit | c76a616bc92df227f57289064e33dcf01ed258cd (patch) | |
tree | 977f4cb057f643fb175170246087092c0f095cfe /modules | |
parent | ba97889137672cf6c3a72ea3b77c48913211c9d3 (diff) | |
download | stable-diffusion-webui-gfx803-c76a616bc92df227f57289064e33dcf01ed258cd.tar.gz stable-diffusion-webui-gfx803-c76a616bc92df227f57289064e33dcf01ed258cd.tar.bz2 stable-diffusion-webui-gfx803-c76a616bc92df227f57289064e33dcf01ed258cd.zip |
fix many paths in code breaking because Processing constructor changed
Diffstat (limited to 'modules')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index 244ed639..435e17eb 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -83,7 +83,7 @@ class StableDiffusionProcessing: class Processed:
- def __init__(self, p: StableDiffusionProcessing, images_list, seed, subseed, info):
+ def __init__(self, p: StableDiffusionProcessing, images_list, seed, info, subseed=None):
self.images = images_list
self.prompt = p.prompt
self.negative_prompt = p.negative_prompt
@@ -356,7 +356,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p)
devices.torch_gc()
- return Processed(p, output_images, all_seeds[0], all_subseeds[0], infotext())
+ return Processed(p, output_images, all_seeds[0], infotext(), subseed=all_subseeds[0])
class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|