diff --git a/app/api/api_design.py b/app/api/api_design.py index af79f05..b0231a2 100644 --- a/app/api/api_design.py +++ b/app/api/api_design.py @@ -164,6 +164,10 @@ def design(request_data: DesignModel): 1.0, 1.0 ], + "transparent":{ + "mask_url":"test/transparent_test/transparent_mask.png", + "scale":0.1 + }, "type": "Outwear" }, { diff --git a/app/core/config.py b/app/core/config.py index 63f1bda..5701e92 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -20,7 +20,7 @@ class Settings(BaseSettings): OSS = "minio" -DEBUG = True +DEBUG = False if DEBUG: LOGS_PATH = "logs/" CATEGORY_PATH = "service/attribute/config/descriptor/category/category_dis.csv" diff --git a/app/service/utils/new_oss_client.py b/app/service/utils/new_oss_client.py index 23e0f8a..8dbf2fc 100644 --- a/app/service/utils/new_oss_client.py +++ b/app/service/utils/new_oss_client.py @@ -82,7 +82,7 @@ if __name__ == '__main__': # 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/89/single_logo/123-89.png" - url = "aida-results/result_94d3fc82-a560-11ef-b2c1-0826ae3ad6b3.png" + url ="aida-results/result_91559b60-a61c-11ef-af8e-0242ac150002.png" # url = "aida-collection-element/12148/Sketchboard/95ea577b-305b-4a62-b30a-39c0dd3ddb3f.png" read_type = "2" @@ -92,4 +92,4 @@ if __name__ == '__main__': cv2.waitKey(0) else: img = oss_get_image(oss_client=minio_client, bucket=url.split('/')[0], object_name=url[url.find('/') + 1:], data_type=read_type) - img.save("原图.png") + img.show()