Unverified Commit 4d5fe3bf authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #5555 from ywx9/master

Bug fix (a few lines in modules/api/api.py)
parents a42a8e91 9539c204
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment