-
Notifications
You must be signed in to change notification settings - Fork 517
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
module._head.anchors._anchors with shape torch.Size([3, 1, 2]) does not match _head.anchors._anchors with shape torch.Size([3, 3, 2]) #1226
Comments
@jhurliman can you please post the code snippet you used for loading the network's weights ? |
This should be fixed after we merged #1184 |
Hi, I was able to reproduce the error. I installed the I trained one iteration yolox_s with 4 gpus in DDP mode using coco 128 without modifying number of classes or anything and got the same error when loading the checkpoint. I tried to load the model with the following: The error:
Config:
Version 3.1.3+main:
|
@BloodAxe update: I saw some commits related to YOLOX were committed today. If I run training now and the same code above with current main commit, everything works fine. But if I used the sample model I trained last night using
|
🐛 Describe the bug
I am training a YOLOX model with as few configuration changes as possible, I changed num_classes from 80 to 8 to and input_dims from 640x640 to 768x768 to match my training data. Training runs and appears to have nice loss curves and validation set performance improvements, but when I try to load the best checkpoint and use it for inference I get this error (same machine, same conda environment):
Versions
The text was updated successfully, but these errors were encountered: