优化训练过程

This commit is contained in:
2025-03-07 08:34:50 +08:00
parent 3d39e89e26
commit 865b077a91
3 changed files with 13 additions and 3 deletions

View File

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