-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'EVA_X' object has no attribute '_pos_embed' #1
Comments
Hi, thank you for submitting the issue. This issue may be due to not following the installation steps provided in README. Please ensure that you have correctly installed all the necessary dependencies. If you still encounter the issue after installation, please provide more detailed information, such as code snippets and the full error log, so we can help you troubleshoot further. |
Can you provide a colab with an example inference on an image. |
I have installed the timm package, but I also get this error. The following is my test code. Thank you! import torch eva_x_ti_pt = '../pretrained_weights/eva_x_tiny_patch16_merged520k_mim.pt' img = torch.rand(10, 3, 224, 224) y = model(img) |
The following is the error information. D:\ProgramData\anaconda3\envs\py311_torch\Lib\site-packages\torch\functional.py:513: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\TensorShape.cpp:3610.) |
When I run the eva_x_tiny_patch16() model, the following error occurs:
'EVA_X' object has no attribute '_pos_embed'
File "F:\networks\eva.py", line 106, in forward_features
x, rot_pos_embed = self._pos_embed(x)
File "F:\networks\eva.py", line 124, in forward
x = self.forward_features(x)
File "F:\networks\eva.py", line 201, in
summary(net, (3, 224,224))
The text was updated successfully, but these errors were encountered: