Skip to content

Cannot Load Models - Missing VisualTransformer in open_clip #9

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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