Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

AttributeError: 'VisionTransformer' object has no attribute 'get_cropped_images' #17

@hsattaru

Description

@hsattaru

running the notebook I get:

AttributeError Traceback (most recent call last)
Cell In[19], line 7
1 image_path = (
2 "image.jpg"
3 # "https://images.pexels.com/photos/3608263/pexels-photo-3608263.jpeg"
4 # "https://images.pexels.com/photos/11873002/pexels-photo-11873002.jpeg"
5 # "https://images.pexels.com/photos/70955/pexels-photo-70955.jpeg"
6 )
----> 7 display(maws_model.get_cropped_images(image_path))

File /opt/conda/envs/maws/lib/python3.10/site-packages/torch/nn/modules/module.py:1940, in Module.getattr(self, name)
1938 if name in modules:
1939 return modules[name]
-> 1940 raise AttributeError(
1941 f"'{type(self).name}' object has no attribute '{name}'"
1942 )

AttributeError: 'VisionTransformer' object has no attribute 'get_cropped_images'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions