Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

_IncompatibleKeys(missing_keys=['pre_logits.fc.weight', 'pre_logits.fc.bias', 'head.weight', 'head.bias'], unexpected_keys=[]) #837

Open
zhangwancheng18 opened this issue Sep 24, 2024 · 0 comments

Comments

@zhangwancheng18
Copy link

parser.add_argument('--weights', type=str, default='./vit_base_patch16_224.pth',
                    help='initial weights path')
model = create_model(num_classes=args.num_classes, has_logits=True).to(device)

把False改成了Ture就出现了这个警告

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant