feat 代码整理
fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user