Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SegCloth.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def segment_clothing(img, category):
# Create the final image by pasting the gray overlay onto the original using the clothing mask
fine_mask_clothes = img_rgb.copy()
fine_mask_clothes.paste(gray_overlay, mask=binary_mask)

binary_mask.save("binary_mask.jpg")
fine_mask_clothes.save("fine_mask_clothes.jpg")
return binary_mask, fine_mask_clothes


Expand Down