-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
yolov5x.pt is not compatible with ./models/yolov5x.yam #1721
Comments
Hello @minertom, thank you for your interest in 🚀 YOLOv5! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com. 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 currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
@minertom your code or your models, or both are out of date. Use latest and train normally. |
Thank you for your quick response. I do not understand how my code or
models can be out of date? I never have downloaded before today. The code
came directly from github.
Regards
Tom
…On Thu, Dec 17, 2020 at 3:13 PM Glenn Jocher ***@***.***> wrote:
@minertom <https://github.com/minertom> your code or your models, or both
are out of date. Use latest and train normally.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHGGHHYV5JJGK6BGOZJKZTSVKGBNANCNFSM4VALV3JA>
.
|
@minertom if they are not out of date then they may be modified. If you are running into an error with current master please provide a link to a Colab notebook so we can reproduce ourselves. Thanks! |
Here is the link. Yes, I am sure that I am running into this error with
current master.
https://colab.research.google.com/drive/1e4zvS6LyhOAayEDh3bz8MXFTJcVFSvZX?usp=sharing#scrollTo=yvQJa9kuoiTD
Thank You
…On Thu, Dec 17, 2020 at 3:33 PM Glenn Jocher ***@***.***> wrote:
@minertom <https://github.com/minertom> if they are not out of date then
they may be modified. If you are running into an error with current master
please provide a link to a Colab notebook so we can reproduce ourselves.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHGGHGTVPLVH2FX2GPTOPTSVKIK5ANCNFSM4VALV3JA>
.
|
@minertom your link is a 3rd party notebook, out of our control. If you are having issues with it you should raise these directly with the authors of that notebook. The official notebook is here, authored by Ultralytics, and everything works correctly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have seen this question asked before and I have read the responses.
My interpretation of the responses is that there is the possibility that some older yolov5x.yaml files could have been loaded and that they need to be purged.
I have downloaded the jupyter notebook to two different directories and have attempted to run on google colab. In both cases, i have received the same error.
I believe that this is the command which causes the error.
!python train.py --img 640 --batch 4 --epochs 30 \ --data ./data/clothing.yaml --cfg ./models/yolov5x.yaml --weights yolov5x.pt \ --name yolov5x_clothing --cache
This is the full error
`Traceback (most recent call last):
File "train.py", line 116, in train
ckpt['model'] = {k: v for k, v in ckpt['model'].float().state_dict().items()
File "train.py", line 117, in
if model.state_dict()[k].shape == v.shape} # to FP32, filter
KeyError: 'model.18.conv.weight'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "train.py", line 404, in
train(hyp)
File "train.py", line 122, in train
raise KeyError(s) from e
KeyError: "yolov5x.pt is not compatible with ./models/yolov5x.yaml. Specify --weights '' or specify a --cfg compatible with yolov5x.pt."`
How best to proceed?
Thank You
Tom
The text was updated successfully, but these errors were encountered: