1.conda创建虚拟环境,并安装需要的依赖库
pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
-i http://pypi.douban.com/simple --trusted-host pypi.douban.com
检测相关环境是否安装成功
python detect.py --source ./data/images/ --weights weights/yolov5s.pt --conf 0.4
train
python train.py --data data/voc-flaw6.yaml --cfg models/yolov5s-flaw6.yaml --weights weights/yolov5s.pt --batch-size 1 --epochs 1