修改一些问题
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训练过程中出现的进度条等信息
|
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()
|
||||||
|
@@ -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()
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user