Commit 9539c204 authored by ywx9's avatar ywx9
Browse files

Bug fix

parent 44c46f0e
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -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.
        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)
        p = StableDiffusionProcessingImg2Img(**args)


        imgs = []
        p.init_images = [decode_base64_to_image(x) for x in init_images]
        for img in init_images:
            img = decode_base64_to_image(img)
            imgs = [img] * p.batch_size

        p.init_images = imgs


        shared.state.begin()
        shared.state.begin()