train.py训练自己数据集是报错
# train yolov5s on custom data for 100 epochs
# time its performance
%%time
%cd /content/yolov5/
!python train.py --img 416 --batch 16 --epochs 100 --data data.yaml --cfg ../models/custom_yolov5s.yaml --weights '' --name yolov5s_results --cache
/content/yolov5
github: ⚠️ WARNING: code is out of date by 814 commits. Use 'git pull' to update or 'git clone https://github.com/ultralytics/yolov5' to download latest.
Traceback (most recent call last):
File "train.py", line 497, in
opt.data, opt.cfg, opt.hyp = check_file(opt.data), check_file(opt.cfg), check_file(opt.hyp) # check files
File "/content/yolov5/utils/general.py", line 124, in check_file
assert len(files) == 1, "Multiple files match '%s', specify exact path: %s" % (file, files) # assert unique
AssertionError: Multiple files match '../models/custom_yolov5s.yaml', specify exact path: ['./train/../models/custom_yolov5s.yaml', './valid/../models/custom_yolov5s.yaml', './pycache/../models/custom_yolov5s.yaml', './weights/../models/custom_yolov5s.yaml', './models/../models/custom_yolov5s.yaml', './utils/../models/custom_yolov5s.yaml', './runs/../models/custom_yolov5s.yaml', './test/../models/custom_yolov5s.yaml', './data/../models/custom_yolov5s.yaml']
CPU times: user 38.4 ms, sys: 18.7 ms, total: 57.1 ms
Wall time: 3.64 s
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答
本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。
因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。