feat 代码整理

fix
This commit is contained in:
zhouchengrong
2024-09-26 14:23:54 +08:00
parent 84d207087b
commit d965352c20
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ from pymilvus import MilvusClient
from app.core.config import *
from app.service.design_fast.utils.design_ensemble import get_keypoint_result
from app.service.utils.decorator import ClassCallRunTime
logger = logging.getLogger(__name__)
@@ -16,6 +17,7 @@ class KeyPoint:
def get_name(cls):
return cls.name
@ClassCallRunTime
def __call__(self, result):
if result['name'] in ['blouse', 'skirt', 'dress', 'outwear', 'trousers', 'tops', 'bottoms']: # 查询是否有数据 且类别相同 相同则直接读 不同则推理后更新
# result['clothes_keypoint'] = self.infer_keypoint_result(result)