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

NWPU-Crowd Dataset #22

Open
SarahJad opened this issue Feb 21, 2023 · 1 comment
Open

NWPU-Crowd Dataset #22

SarahJad opened this issue Feb 21, 2023 · 1 comment

Comments

@SarahJad
Copy link

Hello,
I tried to run the code on [NWPU-Crowd Dataset] downloaded from the following URL
https://gjy3035.github.io/NWPU-Crowd-Sample-Code/
but I got this error :
Traceback (most recent call last): File "/content/CCTrans/train.py", line 69, in <module> trainer.train() File "/content/CCTrans/train_helper_ALTGVT.py", line 180, in train self.train_epoch() File "/content/CCTrans/train_helper_ALTGVT.py", line 205, in train_epoch outputs, outputs_normed = self.model(inputs) File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/content/CCTrans/Networks/ALTGVT.py", line 477, in forward x = self.forward_features(x) File "/content/CCTrans/Networks/ALTGVT.py", line 468, in forward_features x = blk(x, H, W) File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/content/CCTrans/Networks/ALTGVT.py", line 252, in forward x = x + self.drop_path(self.attn(self.norm1(x), H, W)) File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/content/CCTrans/Networks/ALTGVT.py", line 139, in forward x = x.reshape(B, h_group, self.ws, w_group, self.ws, C).transpose(2, 3) RuntimeError: shape '[8, 1, 8, 1, 8, 1024]' is invalid for input of size 1179648

Many thanks,

@wfs123456
Copy link
Owner

wfs123456 commented Feb 22, 2023 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

2 participants