fix 类别映射表修改
This commit is contained in:
@@ -102,7 +102,7 @@ class AttributeRecognition:
|
||||
category = category_list[0]
|
||||
print(category)
|
||||
|
||||
if category == 'tops':
|
||||
if category == 'tops' or category == "top":
|
||||
attr_dict = {'Item': "top"}
|
||||
for i in range(len(args.top_discription_list)):
|
||||
attr_description = args.top_discription_list[i]
|
||||
@@ -110,7 +110,7 @@ class AttributeRecognition:
|
||||
present_dict = self.get_attribute(attr_model_path, attr_description, sample)
|
||||
attr_dict = Merge(attr_dict, present_dict)
|
||||
|
||||
elif category == 'bottoms':
|
||||
elif category == 'bottoms' or category == 'bottom':
|
||||
attr_dict = {'Item': "bottom", 'Type': ['Pants']}
|
||||
for i in range(len(args.bottom_discription_list)):
|
||||
attr_description = args.bottom_discription_list[i]
|
||||
@@ -136,7 +136,7 @@ class AttributeRecognition:
|
||||
present_dict = self.get_attribute(attr_model_path, attr_description, sample)
|
||||
attr_dict = Merge(attr_dict, present_dict)
|
||||
|
||||
elif category == 'outwear':
|
||||
elif category == 'outwear' or category == 'outerwear':
|
||||
attr_dict = {'Item': 'outer'}
|
||||
|
||||
for i in range(len(args.outwear_discription_list)):
|
||||
|
||||
Reference in New Issue
Block a user