diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-12-10 05:27:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 05:27:44 +0000 |
commit | 4d5fe3bfc01568d6cd6d66c7f3de5c714776cf7b (patch) | |
tree | 9d9a3ca38d37a075626d46903a639c70b4325f05 | |
parent | a42a8e91128eeba54e74eb67ae5b69d6ed8804eb (diff) | |
parent | 9539c2045a2de9e900b96acbf67e41fafe93c6f6 (diff) | |
download | stable-diffusion-webui-gfx803-4d5fe3bfc01568d6cd6d66c7f3de5c714776cf7b.tar.gz stable-diffusion-webui-gfx803-4d5fe3bfc01568d6cd6d66c7f3de5c714776cf7b.tar.bz2 stable-diffusion-webui-gfx803-4d5fe3bfc01568d6cd6d66c7f3de5c714776cf7b.zip |
Merge pull request #5555 from ywx9/master
Bug fix (a few lines in modules/api/api.py)
-rw-r--r-- | modules/api/api.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 54ee7cb0..89935a70 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -157,12 +157,7 @@ class Api: args.pop('include_init_images', None) # this is meant to be done by "exclude": True in model, but it's for a reason that I cannot determine. p = StableDiffusionProcessingImg2Img(**args) - imgs = [] - for img in init_images: - img = decode_base64_to_image(img) - imgs = [img] * p.batch_size - - p.init_images = imgs + p.init_images = [decode_base64_to_image(x) for x in init_images] shared.state.begin() |