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

error in running code in caisa-b #6

Open
aleeyang opened this issue Jun 5, 2022 · 9 comments
Open

error in running code in caisa-b #6

aleeyang opened this issue Jun 5, 2022 · 9 comments

Comments

@aleeyang
Copy link

aleeyang commented Jun 5, 2022

I use this command python3 gaitgraph_casia_b.py fit --config configs/casia_b.yaml
but it always give me error reply

File "gaitgraph_casia_b.py", line 77, in validation_step
  y_hat = self(x)
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "gaitgraph_casia_b.py", line 64, in forward
  return self.backbone(x)[0]
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "/home/fuyang/project/keypoint/GaitGraph2/GaitGraph2-main/GaitGraph/models/ResGCNv1/nets.py", line 66, in forward
  x_cat.append(branch(x[:, i]))
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "/home/fuyang/project/keypoint/GaitGraph2/GaitGraph2-main/GaitGraph/models/ResGCNv1/nets.py", line 24, in forward
  x = self.bn(x)
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/batchnorm.py", line 168, in forward
  return F.batch_norm(
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/functional.py", line 2421, in batch_norm
  return torch.batch_norm(
RuntimeError: running_mean should contain 5 elements not 15
@aleeyang
Copy link
Author

aleeyang commented Jun 5, 2022

I can not run your code on caisa-b and oumvlp dataset neither.Can you give more detail command or some steps of configuration?
thank you very much

@aleeyang
Copy link
Author

aleeyang commented Jun 5, 2022

I changed to default setting of caisa-b code multi_branch: bool = False to multi_branch: bool = True
I get this result from tensorboard,but I do not knoe which result is the finnal one
how can I get the result in your paper from this image? (how can I choose one from these results in different steps?)
image

@OnlyFlashEobard
Copy link

same issue, do you solve it?

I use this command python3 gaitgraph_casia_b.py fit --config configs/casia_b.yaml but it always give me error reply

File "gaitgraph_casia_b.py", line 77, in validation_step
  y_hat = self(x)
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "gaitgraph_casia_b.py", line 64, in forward
  return self.backbone(x)[0]
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "/home/fuyang/project/keypoint/GaitGraph2/GaitGraph2-main/GaitGraph/models/ResGCNv1/nets.py", line 66, in forward
  x_cat.append(branch(x[:, i]))
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "/home/fuyang/project/keypoint/GaitGraph2/GaitGraph2-main/GaitGraph/models/ResGCNv1/nets.py", line 24, in forward
  x = self.bn(x)
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
  return forward_call(*input, **kwargs)
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/modules/batchnorm.py", line 168, in forward
  return F.batch_norm(
File "/home/fuyang/anaconda3/envs/gaitgraph/lib/python3.8/site-packages/torch/nn/functional.py", line 2421, in batch_norm
  return torch.batch_norm(
RuntimeError: running_mean should contain 5 elements not 15

same issue, did you solve it?

@OnlyFlashEobard
Copy link

issue solved

@zhang123-sys
Copy link

I changed to default setting of caisa-b code multi_branch: bool = False to multi_branch: bool = True I get this result from tensorboard,but I do not knoe which result is the finnal one how can I get the result in your paper from this image? (how can I choose one from these results in different steps?) image

Could you please send me the result and let me see which result is the final one?

@D9701
Copy link

D9701 commented Aug 16, 2022

问题已解决

请问您是怎么解决的呢?可以详细说一下吗?谢谢

@D9701
Copy link

D9701 commented Aug 17, 2022

How did you solve it? Can you elaborate on that? Thank you

@zhang123-sys
Copy link

issue solved

Excuse me, what result do you get?

@AhsanBilal7
Copy link

AhsanBilal7 commented Sep 24, 2023

How did you solve it? Can you elaborate on that? Thank you

Changing multi_branch: bool = False to multi_branch: bool = True in the both GaitGraphCASIAB and CASIAPoseModule Object

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

5 participants