0


yolov5 报错解决记录

Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

All git commands will error until this is rectified.

This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception

Example:
export GIT_PYTHON_REFRESH=quiet

#出错原因:git环境变量设置问题
#简便解决办法:在导入包的上方增加以下代码
import os
os.environ["GIT_PYTHON_REFRESH"] = "quiet"

Image Not Found C:\yolov5-pyqt-fire_smoke\VOCdevkit\images\train\004366d3-159d-47c4-9198-baf03bdfc0f7.jpg 解决方法: 在labels目录下,删除train.cache和val.cache后再重新在自己电脑或者服务器上运行即可。

标签: YOLO

本文转载自: https://blog.csdn.net/Sickas/article/details/129459630
版权归原作者 Sickas 所有, 如有侵权,请联系我们删除。

“yolov5 报错解决记录”的评论:

还没有评论