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

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part. #13

Open
reddy92rosh opened this issue Oct 19, 2023 · 2 comments

Comments

@reddy92rosh
Copy link

I get the following error due to inhomogeneous shampes in graphs. Did anyone else face this? How do I solve it?

File "/home/roshan/Documents/TextToSchematics/house_diffusion/house_diffusion/rplanhg_datasets.py", line 243, in init
np.savez_compressed(f'processed_rplan/rplan_{set_name}_{target_set}', graphs=self.graphs, houses=self.houses,
File "/home/roshan/anaconda3/envs/houseDiff/lib/python3.11/site-packages/numpy/lib/npyio.py", line 710, in savez_compressed
_savez(file, args, kwds, True)
File "/home/roshan/anaconda3/envs/houseDiff/lib/python3.11/site-packages/numpy/lib/npyio.py", line 740, in _savez
val = np.asanyarray(val)
^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part.

@tuanndhust
Copy link

Did you solve this problem?

@tuanndhust
Copy link

Did you solve this problem?

hmm, I try to uninstall numpy, and install numpy again. It works :D

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

2 participants