altayavci commited on
Commit
18aa7aa
1 Parent(s): 09987ee

Update ip_adapter_inpainting.py

Browse files
Files changed (1) hide show
  1. ip_adapter_inpainting.py +1 -1
ip_adapter_inpainting.py CHANGED
@@ -43,7 +43,7 @@ def generate(img_openpose_gen: Image, img_human: Image, img_clothes: Image, segm
43
  scale=0.8
44
  )[0]
45
 
46
- cropped_head = get_cropped(composite, 13, False, True)
47
  ip_gen_final = Image.alpha_composite(ip_gen.convert("RGBA"),
48
  cropped_head.convert("RGBA")
49
  )
 
43
  scale=0.8
44
  )[0]
45
 
46
+ cropped_head = get_cropped(img_human.resize(img_openpose_gen.size), 13, False, True)
47
  ip_gen_final = Image.alpha_composite(ip_gen.convert("RGBA"),
48
  cropped_head.convert("RGBA")
49
  )