altayavci commited on
Commit
676a18f
1 Parent(s): 0075f4b

Update ip_adapter_inpainting.py

Browse files
Files changed (1) hide show
  1. ip_adapter_inpainting.py +1 -1
ip_adapter_inpainting.py CHANGED
@@ -38,7 +38,7 @@ def generate(img_openpose_gen: Image, img_human: Image, img_clothes: Image, segm
38
  strength=0.8,
39
  guidance_scale=7,
40
  scale=0.8
41
- ).images[0]
42
 
43
  cropped_head = get_cropped(img_openpose_gen, 13, False)
44
  ip_gen_final = alpha_composite(ip_gen.convert("RGBA"),
 
38
  strength=0.8,
39
  guidance_scale=7,
40
  scale=0.8
41
+ )[0]
42
 
43
  cropped_head = get_cropped(img_openpose_gen, 13, False)
44
  ip_gen_final = alpha_composite(ip_gen.convert("RGBA"),