nianticlabs / monodepth2

[ICCV 2019] Monocular depth estimation from a single image
Other
4.05k stars 949 forks source link

The requested array has an inhomogeneous shape after 1 dimensions. #481

Open 757787182 opened 9 months ago

757787182 commented 9 months ago

I met a trouble with "np.savez_compressed(output_path, data=np.array(gt_depths,dtype=np.float32)) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (697,) + inhomogeneous part." When I ran "python export_gt_depth.py --data_path kitti_data --split eigen".could you help me to get over it.

757787182 commented 9 months ago

i can not find the answer on the Internet

Mr-Fu620 commented 9 months ago

I think you can try pip install numpy==1.21.6

757787182 commented 8 months ago

I try pip install numpy==1.21.6 and find answer on the Interent these day,but I stiil have the problem, can you provide me with gt_depth.npy ,thanks

Reyoann commented 4 months ago

im having thiss problem too. Can someone please help

osamaalschame commented 2 months ago

I had same problem when using python3.10, using python3.7.10 with numpy==1.21.6 solved my problem.