修改一些问题
This commit is contained in:
@@ -178,6 +178,7 @@ async def run_detect_img(weights: str, source: str, project: str, name: str, log
|
||||
stderr=subprocess.STDOUT, # 这里可以显示yolov5训练过程中出现的进度条等信息
|
||||
text=True, # 缓存内容为文本,避免后续编码显示问题
|
||||
encoding='utf-8',
|
||||
errors='ignore'
|
||||
) as process:
|
||||
while process.poll() is None:
|
||||
line = process.stdout.readline()
|
||||
|
@@ -218,6 +218,7 @@ async def run_commend(data: str, project: str, name: str, epochs: int, patience:
|
||||
stderr=subprocess.STDOUT, # 这里可以显示yolov5训练过程中出现的进度条等信息
|
||||
text=True, # 缓存内容为文本,避免后续编码显示问题
|
||||
encoding='utf-8',
|
||||
errors='ignore'
|
||||
) as process:
|
||||
while process.poll() is None:
|
||||
line = process.stdout.readline()
|
||||
|
Reference in New Issue
Block a user