3D-Local-CNN-for-Gait-Recognition icon indicating copy to clipboard operation
3D-Local-CNN-for-Gait-Recognition copied to clipboard

The size of tensor a (64) must match the size of tensor b (128) at non-singleton dimension 1

Open FuHui-UPC opened this issue 2 years ago • 8 comments

Traceback (most recent call last): File "main.py", line 161, in p.start() File "/home/fh/3D-Local-CNN-for-Gait-Recognition/solvers/solver.py", line 55, in start return mode() File "/home/fh/3D-Local-CNN-for-Gait-Recognition/solvers/baseline.py", line 95, in train feature = self.model(seq) File "/home/fh/miniconda3/envs/gait/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/home/fh/miniconda3/envs/gait/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 165, in forward return self.module(*inputs[0], **kwargs[0]) File "/home/fh/miniconda3/envs/gait/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/home/fh/3D-Local-CNN-for-Gait-Recognition/models/localcnn3d.py", line 302, in forward gl = self.local(feat4_5d, feat6_5d) File "/home/fh/miniconda3/envs/gait/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/home/fh/3D-Local-CNN-for-Gait-Recognition/models/localcnn3d.py", line 166, in forward head = self.head(x, param_x.detach()) File "/home/fh/miniconda3/envs/gait/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/home/fh/3D-Local-CNN-for-Gait-Recognition/models/localcnn3d.py", line 121, in forward sampled_feature = self.sampler(x, loc_params) File "/home/fh/miniconda3/envs/gait/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl result = self.forward(*input, **kwargs) File "/home/fh/3D-Local-CNN-for-Gait-Recognition/models/sample.py", line 233, in forward glimpse = torch.matmul(Fyv, torch.matmul(x, Fxt)) RuntimeError: The size of tensor a (64) must match the size of tensor b (128) at non-singleton dimension 1

I met some errors when I run "python main.py --config=configs/3DLocalCNN_CASIA.yaml". Could you help me?

FuHui-UPC avatar Mar 13 '22 15:03 FuHui-UPC

Have you ever solved the problem? I met the same error now.

X-ray0214 avatar Mar 17 '22 02:03 X-ray0214

Have you ever solved the problem? I met the same error now.

No. It must be the error of the provided source code.

FuHui-UPC avatar Mar 18 '22 00:03 FuHui-UPC

请问你解决该问题了吗,数据预处理的程序好像运行不了

Yangyc07 avatar Apr 01 '22 11:04 Yangyc07

请问你解决该问题了吗,数据预处理的程序好像运行不了

没有解决,联系作者也没有回复,数据预处理好像没有问题吧

FuHui-UPC avatar Apr 01 '22 12:04 FuHui-UPC

这个预处理和gaitset不同,请问怎么运行pretrement文件预处理

Yangyc07 avatar Apr 02 '22 05:04 Yangyc07

我也是遇到了这个问题!作者可以回复一下吗?

HUAFOR avatar Jul 05 '22 07:07 HUAFOR

一定cuda10.2?cuda11.1可以吗?

zhang123-sys avatar Sep 07 '22 14:09 zhang123-sys

我也是遇到了这个问题!作者可以回复一下吗?

你是因为多个GPU吧,我也遇到了这种问题。但是只用一张GPU的话就没问题

hxi667 avatar Apr 13 '23 07:04 hxi667