Skip to content
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

A issues about ckpt #56

Open
18222why opened this issue Sep 22, 2024 · 3 comments
Open

A issues about ckpt #56

18222why opened this issue Sep 22, 2024 · 3 comments

Comments

@18222why
Copy link

when I using --model vit_base_patch16 to train and mage-vitb-ft.pth as ckpt,A issues coming:

Traceback (most recent call last):
File "main_finetune.py", line 355, in
main(args)
File "main_finetune.py", line 250, in main
assert set(msg.missing_keys) == {'head.weight', 'head.bias', 'fc_norm.weight', 'fc_norm.bias'}
AssertionErro

what should i do?

@LTH14
Copy link
Owner

LTH14 commented Sep 22, 2024

mage-vitb-ft.pth is an already fine-tuned checkpoint. The current fine-tuning code only supports fine-tuning a pre-trained checkpoint.

@18222why
Copy link
Author

Thanks,I finshed it.

@18222why
Copy link
Author

mage-vitb-ft.pth is an already fine-tuned checkpoint. The current fine-tuning code only supports fine-tuning a pre-trained checkpoint.

Dear professor, I now have a very strange problem. When I was running the fine-tuning, an unexpected problem occurred. The accuracy rate remained at 78.6 and would not be changed until 100epoch.But it has never happened before, and it will train 10 epochs before it will reach 78.6. Is my model overfitting?

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

No branches or pull requests

2 participants