细化部分功能
This commit is contained in:
@ -119,7 +119,7 @@ def run_detect_yolo(detect_log_in: ProjectDetectLogIn, session: Session = Depend
|
||||
return rc.response_error("训练权重不存在")
|
||||
detect_img_count = pdc.check_detect_img(detect_log_in.detect_id, session)
|
||||
if detect_img_count == 0:
|
||||
return rc.response_error("推理集合中没有图片,请先到推理集合中上传图片")
|
||||
return rc.response_error("推理集合中没有内容,请先到推理集合中上传图片")
|
||||
detect_log = pds.run_detect_yolo(detect_log_in, detect, train, session)
|
||||
thread_train = threading.Thread(target=run_event_loop, args=(detect_log.pt_url,
|
||||
detect_log.folder_url,
|
||||
|
Reference in New Issue
Block a user