Skip to content

[FEATURE] timm.create_model() load pretrianed model from local path #2067

@ShallJaiden

Description

@ShallJaiden

I tried to load a model checkpoint using timm,

model = timm.create_model( 'mobilenetv2_100', pretrained=True, features_only=True, )

but it only works with intenet connection and pretrained being True. However the machine i work on doesnt have internet access, hence I decided to load it from local, but I dont know if there's a way to do so.

Can you please tell me how to load a pretrained model from local path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions