Spaces:
Configuration error
Configuration error
Update ip_adapter_inpainting.py
Browse files- ip_adapter_inpainting.py +2 -1
ip_adapter_inpainting.py
CHANGED
@@ -23,7 +23,8 @@ def generate(img_openpose_gen: Image, img_human: Image, img_clothes: Image, segm
|
|
23 |
)
|
24 |
composite = overlay_on_white_background(composite)
|
25 |
|
26 |
-
mask = get_blurred_mask(composite, segment_id)
|
|
|
27 |
prompt = derive_caption(img_clothes)
|
28 |
|
29 |
ip_gen = ip_model.model.generate(
|
|
|
23 |
)
|
24 |
composite = overlay_on_white_background(composite)
|
25 |
|
26 |
+
#mask = get_blurred_mask(composite, segment_id)
|
27 |
+
mask = get_blurred_mask(img_human, segment_id)
|
28 |
prompt = derive_caption(img_clothes)
|
29 |
|
30 |
ip_gen = ip_model.model.generate(
|