MAR icon indicating copy to clipboard operation
MAR copied to clipboard

ValueError: axes don't match array

Open zlin-code opened this issue 4 years ago • 0 comments

I tried to run the code,but I got the error. Traceback (most recent call last): File "src/main.py", line 46, in main() File "src/main.py", line 13, in main args.crop_size, args.padding, args.batch_size//2, False) File "/home/m904/zl-ReID/MAR-master/src/utils.py", line 522, in get_transfer_dataloaders target_data = Market('data/{}.mat'.format(target), state='train') File "/home/m904/zl-ReID/MAR-master/src/ReIDdatasets.py", line 33, in init self.data = np.transpose(temp.value, (0, 3, 2, 1)) File "<array_function internals>", line 6, in transpose File "/home/m904/.conda/envs/pytorch_wxy/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 650, in transpose return _wrapfunc(a, 'transpose', axes) File "/home/m904/.conda/envs/pytorch_wxy/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 61, in _wrapfunc return bound(*args, **kwds) ValueError: axes don't match array

zlin-code avatar Jul 27 '20 07:07 zlin-code