训练数据集时报
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()
解决方案
import os 中加入os.environ["GIT_PYTHON_REFRESH"] = "quiet"(大概代码20行)
import argparse import math import os os.environ["GIT_PYTHON_REFRESH"] = "quiet" import random import sys import time from copy import deepcopy from datetime import datetime from pathlib import Path