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

TypeError: VisionTransformer.__init__() got an unexpected keyword argument 'pretrained_cfg' #126

Open
FVT34U opened this issue Aug 8, 2024 · 1 comment

Comments

@FVT34U
Copy link

FVT34U commented Aug 8, 2024

I have this problem with running code:

Traceback (most recent call last):
File "path\to\VideoMAEv2\run_class_finetuning.py", line 926, in
main(opts, ds_init)
File "path\to\VideoMAEv2\run_class_finetuning.py", line 514, in main
model = create_model(
File "path\to\anaconda3\envs\videomae\lib\site-packages\timm\models_factory.py", line 117, in create_model
model = create_fn(
File "path\to\VideoMAEv2\models\modeling_finetune.py", line 459, in vit_small_patch16_224 model = VisionTransformer(
TypeError: VisionTransformer.init() got an unexpected keyword argument 'pretrained_cfg'

@liuyifan6613
Copy link

pip install timm==0.4.12

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