Update model/cloth_masker.py
Browse files206 unmodified lines20720820921021121221311 unmodified lines225226227228229230231206 unmodified linesschp_atr_mask = np.array(schp_atr_mask)# Strong Protect Area (Hands, Face, Accessory, Feet)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 linespart_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 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:206 unmodified lines20720820921021121221311 unmodified lines225226227228229230231206 unmodified linesschp_atr_mask = np.array(schp_atr_mask)# Strong Protect Area (Hands, Face, Accessory, Feet)if 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 linespart_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":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