Skip to content

How to load viT models in fastai learner? #11

@m-ali-awan

Description

@m-ali-awan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions