Skip to content

Cannot Load Models - Missing VisualTransformer in open_clip #9

@aryajalali

Description

@aryajalali

Hi. Nice paper.

When trying to load a model checkpoint using torch.load(), the following error occurs:

AttributeError: Can't get attribute 'VisualTransformer' on <module 'open_clip.model' from 'C:\\Python311\\Lib\\site-packages\\open_clip\\model.py'>

It seems that open_clip no longer contains VisualTransformer, but the checkpoint expects it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions