部分小问题的修改
This commit is contained in:
@ -118,7 +118,7 @@ async def run_detect_yolo(
|
||||
return ErrorResponse("训练权重不存在")
|
||||
file_count = await crud.ProjectDetectFileDal(auth.db).file_count(detect_log_in.detect_id)
|
||||
if file_count == 0 and detect.rtsp_url is None:
|
||||
return ErrorResponse("推理集合中没有内容,请先到推理集合中上传图片")
|
||||
return ErrorResponse("推理集合中没有文件,请先到推理集合中上传推理内容")
|
||||
is_gpu = await rd.get('is_gpu')
|
||||
# 判断一下是单纯的推理项目还是跟踪项目
|
||||
project_info = await ProjectInfoDal(auth.db).get_data(data_id=detect.project_id)
|
||||
@ -194,7 +194,7 @@ async def logs_download(
|
||||
# 检查源文件夹是否存在
|
||||
folder_path = os.path.join(detect_log.detect_folder_url, detect_log.detect_version)
|
||||
if not os.path.exists(folder_path):
|
||||
return ErrorResponse(msg="推理结果文件夹不存在")
|
||||
return ErrorResponse(msg="推理结果尚未生成,请稍后再下载")
|
||||
|
||||
zip_filename = f"{detect_log.detect_name}_{detect_log.detect_version}.zip"
|
||||
zip_file_path = osu.zip_folder(folder_path, zip_filename)
|
||||
|
Reference in New Issue
Block a user