habitat-lab
habitat-lab copied to clipboard
I encountered an error while following the Habitat Sim Image Extractor Tutorial for image extraction.
Habitat-Lab and Habitat-Sim versions
Habitat-Lab: None
Habitat-Sim: v0.3.0
Habitat is under active development, and we advise users to restrict themselves to stable releases. Are you using the latest release versions of Habitat-Lab and Habitat-Sim? Your question may already be addressed in the latest versions. We may also not be able to help with problems in earlier versions because they sometimes lack the more verbose logging needed for debugging.
Master branch contains 'bleeding edge' code and should be used at your own risk.
Docs and Tutorials
Did you read the docs? https://aihabitat.org/docs/habitat-lab/ Yes Did you check out the tutorials? https://aihabitat.org/tutorial/2020/ Yes Perhaps your question is answered there. If not, carry on!
❓ Questions and Help
I encountered an error while building the ImageExtractor as I was following the image extraction tutorial provided on the https://aihabitat.org/docs/habitat-sim/image-extractor.html website
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (45, 3) + inhomogeneous part.
I know why I made a mistake. The reason for my mistake is habitat sim 0.3.0 requires numpy<1.24.0,>=1.20.0, but I have numpy 1.24.4
In addition to this problem, I have encountered a few others with other packages. It is important to install numpy==1.21.0 or (probably) higher as, for example, numpy 1.20.0 would cause dependency issues with matplolib and scipy.
I have manually installed the following versions, which seem to be working:
numpy 1.21.0 matplotlib 3.7.0 scipy 1.10.1
There are some other missing installations though, e.g. magnum, attrs (the error will be about attr, but install attrs instead).
@nilinykh yes, you are right, thanks for your advice