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

dataset shape not match in AVS #18

Open
zsevenj opened this issue Sep 4, 2023 · 5 comments
Open

dataset shape not match in AVS #18

zsevenj opened this issue Sep 4, 2023 · 5 comments

Comments

@zsevenj
Copy link

zsevenj commented Sep 4, 2023

I try to run the code of avs, but the following error occurs:
XXXXXXXXXXXXXXXXX
File "../LAVISH/AVS/avs_scripts/avs_s4/model/PVT_AVSModel.py", line 492, in forward
x = self.swin.norm(x)
XXXXXXXXXXXXXXXXX
RuntimeError: Given normalized_shape=[1536], expected input with shape [*, 1536], but got input of size[5, 3, 192, 192]

@fyyCS
Copy link

fyyCS commented Sep 11, 2023

May I ask if you've solved the issue?

@GenjiB
Copy link
Owner

GenjiB commented Sep 12, 2023

I'll fix it recently.

@ShareWeb123
Copy link

Thank you for your excellent work. I've recently encountered a similar problem with debugging code.
File "../LAVISH/AVS/avs_scripts/avs_s4/model/PVT_AVSModel.py", line 492, in forward
x = self.swin.norm(x)
......
RuntimeError: Given normalized_shape=[1536], expected input with shape [*, 1536], but got input of size[20, 3, 192, 192]

@GenjiB
Copy link
Owner

GenjiB commented Mar 18, 2024

Most of the bugs come from the version of timm. please use the exact version of timm and single gpu

@ShareWeb123
Copy link

ShareWeb123 commented Mar 31, 2024 via email

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

4 participants