-
Notifications
You must be signed in to change notification settings - Fork 176
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
TransferLearning Cifar10 #42
Comments
Hi, |
Thanks for clarification. I am still a bit unclear about naming convention you have in the repo. When the model is already started with cifar, I assumed it is trained on cifar or fine tuned on cifar. Thank you for your time and effort. I hope this wonderful repo gets mature sooner and people can leverage this model easier. |
HI, Thanks for your suggestions! |
thanks for your nice work!
I have some issue following the repo and run the code for transfer learning.
I get the pretrain model for cifar10 from the link and locate it in the appropriate location and then when I run the following code from repo:
CUDA_VISIBLE_DEVICES=0,1 transfer_learning.py --lr 0.05 --b 64 --num-classes 10 --img-size 224 --transfer-learning True --transfer-model /path/to/pretrained/T2T-ViT-19
(model path adjusted)
I face some issue like the state dictionary does not have same name as it is used in the model. I do not understand why this can happen. Is there any mismatch between code and pretrained model architecture?
del state_dict['head' + '.weight']
KeyError: 'head.weight'
The text was updated successfully, but these errors were encountered: