feat(新功能):
fix(修复bug): 修复配饰位置异常 docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -15,7 +15,7 @@ class AccessoriesItem(BaseItem):
|
|||||||
self.Accessories_pipeline = [
|
self.Accessories_pipeline = [
|
||||||
LoadImage(minio_client),
|
LoadImage(minio_client),
|
||||||
# KeyPoint(),
|
# KeyPoint(),
|
||||||
ContourDetection(),
|
# ContourDetection(),
|
||||||
Segmentation(minio_client),
|
Segmentation(minio_client),
|
||||||
# BackPerspective(minio_client),
|
# BackPerspective(minio_client),
|
||||||
Color(minio_client),
|
Color(minio_client),
|
||||||
|
|||||||
@@ -58,6 +58,15 @@ def organize_clothing(layer):
|
|||||||
def organize_accessories(layer):
|
def organize_accessories(layer):
|
||||||
# 起始坐标
|
# 起始坐标
|
||||||
start_point = (0, 0)
|
start_point = (0, 0)
|
||||||
|
layer['clothes_keypoint'] = {
|
||||||
|
'accessories_left': [0, 0]
|
||||||
|
}
|
||||||
|
layer['body_point_test'] = {
|
||||||
|
'accessories_left': [0, 0]
|
||||||
|
}
|
||||||
|
|
||||||
|
start_point = calculate_start_point(layer['keypoint'], layer['scale'], layer['clothes_keypoint'], layer['body_point_test'], layer["offset"], layer["resize_scale"])
|
||||||
|
|
||||||
# 前片数据
|
# 前片数据
|
||||||
front_layer = dict(priority=layer['priority'] if layer.get("layer_order", False) else PRIORITY_DICT.get(f'{layer["name"].lower()}_front', None),
|
front_layer = dict(priority=layer['priority'] if layer.get("layer_order", False) else PRIORITY_DICT.get(f'{layer["name"].lower()}_front', None),
|
||||||
name=f'{layer["name"].lower()}_front',
|
name=f'{layer["name"].lower()}_front',
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ if __name__ == '__main__':
|
|||||||
# url = "aida-users/89/sketchboard/female/Dress/e6724ab7-8d3f-4677-abe0-c3e42ab7af85.jpeg"
|
# url = "aida-users/89/sketchboard/female/Dress/e6724ab7-8d3f-4677-abe0-c3e42ab7af85.jpeg"
|
||||||
# url = "aida-users/87/print/956614a2-7e75-4fbe-9ed0-c1831e37a2c9-4-87.png"
|
# url = "aida-users/87/print/956614a2-7e75-4fbe-9ed0-c1831e37a2c9-4-87.png"
|
||||||
# url = "aida-users/89/single_logo/123-89.png"
|
# url = "aida-users/89/single_logo/123-89.png"
|
||||||
url = "aida-sys-image/models/male/65239c72-cc59-4bd6-ac17-fc828e23b450.png"
|
url = "aida-results/result_d2577888-92d7-11f0-9cfd-e0d362103998.png"
|
||||||
|
|
||||||
# url = "aida-collection-element/12148/Sketchboard/95ea577b-305b-4a62-b30a-39c0dd3ddb3f.png"
|
# url = "aida-collection-element/12148/Sketchboard/95ea577b-305b-4a62-b30a-39c0dd3ddb3f.png"
|
||||||
read_type = "2"
|
read_type = "2"
|
||||||
|
|||||||
Reference in New Issue
Block a user