Merge branch 'ai/develop' of https://lab.ssafy.com/s11-s-project/S11P21S002 into ai/refactor/resource-cleanup
This commit is contained in:
commit
dae4ca4bf1
@ -51,7 +51,7 @@ async def detection_predict(request: PredictRequest):
|
|||||||
send_slack_message(f"추론 결과 변환 완료 (projectId: {project_id}). 걸린 시간: {time.time() - start_time:.2f} 초",
|
send_slack_message(f"추론 결과 변환 완료 (projectId: {project_id}). 걸린 시간: {time.time() - start_time:.2f} 초",
|
||||||
status="success")
|
status="success")
|
||||||
|
|
||||||
send_slack_message(f"Detection predict 성공 (projectId: {project_id}) {response}", status="success")
|
send_slack_message(f"Detection predict 성공 (projectId: {project_id}) {len(response)}", status="success")
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ router = APIRouter()
|
|||||||
@router.post("/predict")
|
@router.post("/predict")
|
||||||
async def segmentation_predict(request: PredictRequest):
|
async def segmentation_predict(request: PredictRequest):
|
||||||
project_id = request.project_id
|
project_id = request.project_id
|
||||||
send_slack_message(f"Segmentation predict 요청 (projectId: {project_id}, 이미지 개수: {len(request.data)})",
|
send_slack_message(f"Segmentation predict 요청 (projectId: {project_id}, 이미지 개수: {len(request.image_list)})",
|
||||||
status="success")
|
status="success")
|
||||||
|
|
||||||
# 모델 로드
|
# 모델 로드
|
||||||
|
Loading…
Reference in New Issue
Block a user