Update model/cloth_masker.py
Browse files206 unmodified lines20720820921021021121221311 unmodified lines225226227228228229230231206 unmodified lines schp_atr_mask = np.array(schp_atr_mask) # Strong Protect Area (Hands, Face, Accessory, Feet) if part == "overall": if False and part == "overall": hands_protect_area = part_mask_of(['hands',], densepose_mask, DENSE_INDEX_MAP) else: hands_protect_area = part_mask_of(['hands', 'feet'], densepose_mask, DENSE_INDEX_MAP)11 unmodified lines part_mask_of(['Hair'], schp_atr_mask, ATR_MAPPING) cloth_protect_area = part_mask_of(PROTECT_CLOTH_PARTS[part]['LIP'], schp_lip_mask, LIP_MAPPING) | \ part_mask_of(PROTECT_CLOTH_PARTS[part]['ATR'], schp_atr_mask, ATR_MAPPING) if part == "overall": if False and part == "overall": accessory_protect_area = part_mask_of((accessory_parts := ['Hat', 'Glove', 'Sunglasses', 'Bag', 'Scarf', 'Socks']), schp_lip_mask, LIP_MAPPING) | \ part_mask_of(accessory_parts, schp_atr_mask, ATR_MAPPING) else:model/cloth_masker.py+2-2