gdlg / panoramic-depth-estimation

Eliminating the Blind Spot: Adapting 3D Object Detection and Monocular Depth Estimation to 360° Panoramic Imagery
https://gdlg.github.io/panoramic
Other
64 stars 10 forks source link

AttributeError: 'tuple' object has no attribute 'type' #2

Closed lasxz closed 5 years ago

lasxz commented 5 years ago

This is my command line:

python monodepth_simple.py --image_path ~/007998.png --output_path my_output --checkpoint_path models/panoramic_checkpoints/mixed_warp/model-180000 --input_height 256 --input_width 1024

The following error occurred:

Traceback (most recent call last): File "monodepth_simple.py", line 16, in import numpy as np File "/home/nest/anaconda3/lib/python3.5/site-packages/numpy/init.py", line 142, in from . import core File "/home/nest/anaconda3/lib/python3.5/site-packages/numpy/core/init.py", line 57, in from . import numerictypes as nt File "/home/nest/anaconda3/lib/python3.5/site-packages/numpy/core/numerictypes.py", line 111, in from ._type_aliases import ( File "/home/nest/anaconda3/lib/python3.5/site-packages/numpy/core/_type_aliases.py", line 63, in _concrete_types = {v.type for k, v in _concrete_typeinfo.items()} File "/home/nest/anaconda3/lib/python3.5/site-packages/numpy/core/_type_aliases.py", line 63, in _concrete_types = {v.type for k, v in _concrete_typeinfo.items()} AttributeError: 'tuple' object has no attribute 'type'

how to fix it?

gdlg commented 5 years ago

It seems to be that your Numpy installation is broken. See numpy/numpy#12775 for potential fix.