princeton-vl / lietorch

BSD 3-Clause "New" or "Revised" License
663 stars 46 forks source link

'map' object has no attribute 'shape' #31

Open Zhang-ren opened 1 year ago

Zhang-ren commented 1 year ago

This is a good project , but I got some error when I run this command: python scripts/demo.py --network=raft3d.raft3d --model=raft3d.pth It looks like a problem caused by lietorch,and I git clone from https://github.com/princeton-vl/lietorch.git and install lietorch==0.2.0 Traceback (most recent call last): File "scripts/demo.py", line 97, in demo(args) File "/home/data3/zr/anaconda3/envs/lie_env/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decoratecontext return func(*args, **kwargs) File "scripts/demo.py", line 78, in demo flow2d, flow3d, = pops.induced_flow(Ts, depth1, intrinsics) File "/home/data3/zr/code/RAFT-3D/./raft3d/projective_ops.py", line 52, in induced_flow X1 = Ts * X0 File "/home/data3/zr/anaconda3/envs/lie_env/lib/python3.8/site-packages/lietorch/groups.py", line 206, in mul return self.act(other) File "/home/data3/zr/anaconda3/envs/lie_env/lib/python3.8/site-packages/lietorch/groups.py", line 174, in act return self.apply_op(Act3, self.data, p) File "/home/data3/zr/anaconda3/envs/lie_env/lib/python3.8/site-packages/lietorch/groups.py", line 127, in apply_op inputs, out_shape = broadcast_inputs(x, y) File "/home/data3/zr/anaconda3/envs/lie_env/lib/python3.8/site-packages/lietorch/broadcasting.py", line 18, in broadcast_inputs check_broadcastable(x, y) File "/home/data3/zr/anaconda3/envs/lie_env/lib/python3.8/site-packages/lietorch/broadcasting.py", line 8, in check_broadcastable assert len(x.shape) == len(y.shape) AttributeError: 'map' object has no attribute 'shape'

This is my conda envs, please tell me what should I do. Package Version absl-py 1.4.0 appdirs 1.4.4 brotlipy 0.7.0 cachetools 5.3.0 certifi 2022.12.7 cffi 1.15.1 charset-normalizer 2.0.4 contourpy 1.0.7 cryptography 38.0.4 cycler 0.11.0 flit_core 3.6.0 fonttools 4.38.0 google-auth 2.16.0 google-auth-oauthlib 0.4.6 grpcio 1.51.1 idna 3.4 importlib-metadata 6.0.0 importlib-resources 5.10.2 kiwisolver 1.4.4 lietorch 0.2 Markdown 3.4.1 MarkupSafe 2.1.2 matplotlib 3.7.0 mkl-fft 1.3.1 mkl-random 1.2.2 mkl-service 2.4.0 numpy 1.23.5 oauthlib 3.2.2 opencv-python 4.7.0.68 packaging 22.0 Pillow 9.3.0 pip 22.3.1 pooch 1.4.0 protobuf 4.21.12 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycparser 2.21 pyOpenSSL 22.0.0 pyparsing 3.0.9 PySocks 1.7.1 python-dateutil 2.8.2 PyYAML 6.0 requests 2.28.1 requests-oauthlib 1.3.1 rsa 4.9 scipy 1.10.0 setuptools 65.6.3 six 1.16.0 tensorboard 2.12.0 tensorboard-data-server 0.7.0 tensorboard-plugin-wit 1.8.1 torch 1.8.0 torchaudio 0.8.0a0+a751e1d torchvision 0.9.0 tqdm 4.64.1 typing_extensions 4.4.0 urllib3 1.26.14 Werkzeug 2.2.3 wheel 0.37.1 zipp 3.13.0