tteepe / GaitGraph2

Official code for "Towards a Deeper Understanding of Skeleton-based Gait Recognition" (CVPRW'22)
40 stars 11 forks source link

error in running code in caisa-b #6

Open aleeyang opened 2 years ago

aleeyang commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

issue solved

zhang123-sys commented 2 years ago

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 commented 2 years ago

问题已解决

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

D9701 commented 2 years ago

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

zhang123-sys commented 2 years ago

issue solved

Excuse me, what result do you get?

AhsanBilal7 commented 1 year ago

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