cp-vton-plus icon indicating copy to clipboard operation
cp-vton-plus copied to clipboard

Threshold value for body masking

Open arvind-iyer opened this issue 5 years ago • 1 comments

In the make_body_mask function in body_binary_masking.py, I see this line of code

54:  _, seg_mask = cv2.threshold(gray, 1, 255, cv2.THRESH_BINARY)

Shouldn't the ~~first~~ second argument be 0 not 1? Won't the hat segmentation part be lost if 1 is set as the threshold?

arvind-iyer avatar Nov 12 '20 10:11 arvind-iyer

Hi @arvind-iyer , this code is very heuristic, sure you can update the arguments based on your data. For example, in the case of the VITON dataset, they don't have the hat labels.

minar09 avatar Dec 11 '20 13:12 minar09