feat sketch 提取接口 和 minio超时设置

fix
This commit is contained in:
zhouchengrong
2024-08-19 11:10:48 +08:00
parent 49eb0e4088
commit aa501d848a

View File

@@ -151,7 +151,7 @@ class DesignPreprocessing:
# 推理得到keypoint # 推理得到keypoint
sketch['keypoint_result'] = self.keypoint_cache(sketch) sketch['keypoint_result'] = self.keypoint_cache(sketch)
if sketch['site'] == 'up': if sketch['site'] == 'up':
_, seg_cache = self.load_seg_result(sketch['obj']) _, seg_cache = self.load_seg_result(sketch['image_id'])
if not _: if not _:
# 推理获得seg 结果 # 推理获得seg 结果
seg_result = get_seg_result(sketch["image_id"], sketch['obj'])[0] seg_result = get_seg_result(sketch["image_id"], sketch['obj'])[0]