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

How to load viT models in fastai learner? #11

Open
m-ali-awan opened this issue May 6, 2021 · 1 comment
Open

How to load viT models in fastai learner? #11

m-ali-awan opened this issue May 6, 2021 · 1 comment

Comments

@m-ali-awan
Copy link

TypeError: init() got an unexpected keyword argument 'global_pool'

This error is thrown whenever we use Transformer model:

'''
timm_learner(dls,'vit_small_patch16_224', loss_func=LabelSmoothingCrossEntropy(),metrics=[accuracy,
top_3_accuracy,
f1score,
rocauc,
prec
], opt_func=ranger,model_dir=struggling_models_path)

'''
Thanks for any help

@AndreasNeuhierl
Copy link

Same Problem here. Did you find a solution?

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