Skip to content

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

@FVT34U

Description

@FVT34U

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions