Skip to content

ModuleNotFoundError: No module named 'keras_cv_attention_models.maxvit' #12

Description

@LukasMut

I am currently trying to add your models to the thingsvision toolbox, but we keep getting the following error message:

  File "/Users/runner/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/harmonization/models/maxvit.py", line 6, in <module>
    from keras_cv_attention_models.maxvit import  MaxViT_Tiny
ModuleNotFoundError: No module named 'keras_cv_attention_models.maxvit'

From this commit I can infer that you've added MaxViT only recently. Did you actually test whether the imports work as expected? From what I can see here is that you need to use keras-cv-attention-models rather than keras_cv_attention_models when installing the module via pip. However, I am not 100% sure whether that's the issue. You can find the PR that is trying to add your models to the thingsvision toolbox here.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions