You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
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'
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'