Skip to content
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

IndexError: tensors used as indices must be long, byte or bool tensors #1

Open
codgodtao opened this issue Mar 11, 2023 · 0 comments
Open

Comments

@codgodtao
Copy link

First of all, thank you very much for your nice work!

Some problems occurred when using the provided checkpoint and code to test the demo GF2 image

File "PanFormer-main\models\common\modules.py", line 394, in forward
    dots += self.pos_embedding[self.relative_indices[:, :, 0], self.relative_indices[:, :, 1]]
IndexError: tensors used as indices must be long, byte or bool tensors

I haven't modified the config file and PSData file. How can I solve the above problems? Thank you in advance for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant