-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
训练报错,请问如何解决? #21
Comments
版本不对,作者使用的是yolov5-4.0版本,解决方案: |
就是用last.pt作预训练模型的,不知道为啥错误很多,改完一个有一个,改到后面糊涂了 |
这是用last.pt训练的 |
至少没报SPPF的错了,看样子是你数据有点问题 |
@leatherking 能否看看你的数据集,我的数据集发出来了,估计是后面4个点的问题 |
是的 |
@leatherking 能否发一些你的数据集给验证下 感谢 , (如果可以,[email protected]) |
报错信息:训练完成一次后出错,没生产pt文件,请问如何解决?
100%|█████████▉| 14.1M/14.1M [32:20<00:01, 10.3kB/s]
100%|██████████| 14.1M/14.1M [32:20<00:00, 13.4kB/s]
100%|██████████| 14.1M/14.1M [32:20<00:00, 7.63kB/s]
Traceback (most recent call last):
File "/detect/yolov5-car-plate/train.py", line 552, in
train(hyp, opt, device, tb_writer)
File "/detect/yolov5-car-plate/train.py", line 90, in train
ckpt = torch.load(weights, map_location=device) # load checkpoint
File "/root/anaconda3/lib/python3.9/site-packages/torch/serialization.py", line 607, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/root/anaconda3/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load
result = unpickler.load()
File "/root/anaconda3/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class
return super().find_class(mod_name, name)
AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from '/detect/yolov5-car-plate/models/common.py'>
数据集是这样的:
0 0.5059158805031446 0.5967854647099929 0.2672955974842768 0.2585604472396925 0.4793828616352201 0.6509433962264151 0.5422759433962264 0.6491963661774982 0.5422759433962264 0.6823899371069182 0.47741745283018866 0.6771488469601677
The text was updated successfully, but these errors were encountered: