You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
I was using the repisotry 2 days ago and it was working fine. With the new updates something has changed and now when I try to load a model it is telling me that the output size is incorrect: size mismatch for class_labels_classifier.weight: copying a param with shape torch.Size([92, 256]) from checkpoint, the shape in current model is torch.Size([11, 256]). The ignore_mismatched_sizes has been set to true and I am using the facebook/detr-resnet-50 model specefically. I am pretty sure that it is due to a change in the repository since I copied the code and just reinstalled the repo in a new enviroment. In the old enviroment it works fine in the new one it is breaking. This is with the run_object_detection.py script.
Expected behavior
that the model is able to adapt to the new model size and train
The text was updated successfully, but these errors were encountered:
System Info
new:
transformers
version: 4.50.0.dev0old:
transformers
version: 4.50.0.dev0Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I was using the repisotry 2 days ago and it was working fine. With the new updates something has changed and now when I try to load a model it is telling me that the output size is incorrect: size mismatch for class_labels_classifier.weight: copying a param with shape torch.Size([92, 256]) from checkpoint, the shape in current model is torch.Size([11, 256]). The ignore_mismatched_sizes has been set to true and I am using the facebook/detr-resnet-50 model specefically. I am pretty sure that it is due to a change in the repository since I copied the code and just reinstalled the repo in a new enviroment. In the old enviroment it works fine in the new one it is breaking. This is with the run_object_detection.py script.
Expected behavior
that the model is able to adapt to the new model size and train
The text was updated successfully, but these errors were encountered: