训练之中,出现迷之错误
ImportError: 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()
在train.py最上面增加以下代码即可,这是git没有安装或者没有配置浩导致的
import os
os.environ["GIT_PYTHON_REFRESH"] = "quiet"