Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
757787182 opened this issue Oct 27, 2023 · 5 comments
Open

Comments

@757787182
Copy link

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
Copy link
Author

i can not find the answer on the Internet

@Mr-Fu620
Copy link

Mr-Fu620 commented Oct 28, 2023

I think you can try pip install numpy==1.21.6

@757787182
Copy link
Author

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
Copy link

Reyoann commented Mar 10, 2024

im having thiss problem too. Can someone please help

@osamaalschame
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants