python时区问题

部分接口返回的问题
This commit is contained in:
2025-03-07 09:56:09 +08:00
parent 865b077a91
commit 758082db14
6 changed files with 36 additions and 10 deletions

View File

@ -106,6 +106,7 @@ def run_detect_yolo(detect_in: ProjectDetectLogIn, detect: ProjectDetect, train:
# 构建推理记录数据
detect_log = ProjectDetectLog()
detect_log.detect_name = detect.detect_name
detect_log.detect_id = detect.id
detect_log.detect_version = version_path
detect_log.train_id = train.id

View File

@ -190,7 +190,7 @@ def run_commend(data: str, project: str,
"--name=" + name,
"--epochs=" + str(epochs),
"--batch-size=4",
"--exist_ok"],
"--exist-ok"],
bufsize=1, # bufsize=0时为不缓存bufsize=1时按行缓存bufsize为其他正整数时为按照近似该正整数的字节数缓存
shell=False,
stdout=subprocess.PIPE,