File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,10 @@ def img2imgapi(self, img2imgreq: StableDiffusionImg2ImgProcessingAPI):
152
152
)
153
153
if populate .sampler_name :
154
154
populate .sampler_index = None # prevent a warning later on
155
- p = StableDiffusionProcessingImg2Img (** vars (populate ))
155
+
156
+ args = vars (populate )
157
+ 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.
158
+ p = StableDiffusionProcessingImg2Img (** args )
156
159
157
160
imgs = []
158
161
for img in init_images :
@@ -170,7 +173,7 @@ def img2imgapi(self, img2imgreq: StableDiffusionImg2ImgProcessingAPI):
170
173
171
174
b64images = list (map (encode_pil_to_base64 , processed .images ))
172
175
173
- if ( not img2imgreq .include_init_images ) :
176
+ if not img2imgreq .include_init_images :
174
177
img2imgreq .init_images = None
175
178
img2imgreq .mask = None
176
179
You can’t perform that action at this time.
0 commit comments