修改一些问题

This commit is contained in:
2025-09-30 13:41:49 +08:00
parent 0cd3d914e9
commit d6e7c301d2
3 changed files with 2 additions and 1 deletions

View File

@@ -178,6 +178,7 @@ async def run_detect_img(weights: str, source: str, project: str, name: str, log
stderr=subprocess.STDOUT, # 这里可以显示yolov5训练过程中出现的进度条等信息 stderr=subprocess.STDOUT, # 这里可以显示yolov5训练过程中出现的进度条等信息
text=True, # 缓存内容为文本,避免后续编码显示问题 text=True, # 缓存内容为文本,避免后续编码显示问题
encoding='utf-8', encoding='utf-8',
errors='ignore'
) as process: ) as process:
while process.poll() is None: while process.poll() is None:
line = process.stdout.readline() line = process.stdout.readline()

View File

@@ -218,6 +218,7 @@ async def run_commend(data: str, project: str, name: str, epochs: int, patience:
stderr=subprocess.STDOUT, # 这里可以显示yolov5训练过程中出现的进度条等信息 stderr=subprocess.STDOUT, # 这里可以显示yolov5训练过程中出现的进度条等信息
text=True, # 缓存内容为文本,避免后续编码显示问题 text=True, # 缓存内容为文本,避免后续编码显示问题
encoding='utf-8', encoding='utf-8',
errors='ignore'
) as process: ) as process:
while process.poll() is None: while process.poll() is None:
line = process.stdout.readline() line = process.stdout.readline()

View File

@@ -21,7 +21,6 @@ requests-toolbelt==1.0.0
python-socketio == 5.12.1 python-socketio == 5.12.1
setuptools==75.8.0 setuptools==75.8.0
# YOLOV5 ---------------------------------------------------------------------- # YOLOV5 ----------------------------------------------------------------------
gitpython>=3.1.30 gitpython>=3.1.30
matplotlib==3.7.0 matplotlib==3.7.0