yolov5s.yaml doesn't work #2980
Replies: 1 comment 1 reply
-
@q1135718080 👋 Hello, thank you for your interest in our work! This issue seems to lack the minimum requirements for a proper response, or is insufficiently detailed for us to help you. Please note that most technical problems are due to:
$ git clone https://github.com/ultralytics/yolov5 yolov5_new # clone latest
$ cd yolov5_new
$ python detect.py # verify detection
# CODE TO REPRODUCE YOUR ISSUE HERE
If none of these apply to you, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example of your issue. Thank you! RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are passing. These tests evaluate proper operation of basic YOLOv5 functionality, including training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
When I run “python train.py --data coco.yaml --cfg yolov5s.yaml --weights '' --batch-size 64” in version-5 release , it's wrong.Here are info:
Traceback (most recent call last):
File "train.py", line 544, in
train(hyp, opt, device, tb_writer)
File "train.py", line 95, in train
model = Model(opt.cfg, ch=3, nc=nc, anchors=hyp.get('anchors')).to(device) # create
File "D:\yolov5-master-ver5\yolov5-master\models\yolo.py", line 85, in init
self.model, self.save = parse_model(deepcopy(self.yaml), ch=[ch]) # model, savelist
File "D:\yolov5-master-ver5\yolov5-master\models\yolo.py", line 242, in parse_model
m_ = nn.Sequential(*[m(*args) for _ in range(n)]) if n > 1 else m(*args) # module
File "D:\yolov5-master-ver5\yolov5-master\models\yolo.py", line 35, in init
a = torch.tensor(anchors).float().view(self.nl, -1, 2)
TypeError: new(): invalid data type 'str'
What should I do?
Beta Was this translation helpful? Give feedback.
All reactions