Spaces:
Configuration error
Configuration error
Update ip_adapter_inpainting.py
Browse files- 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(
|
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 |
)
|