peteanderson80 / Matterport3DSimulator

AI Research Platform for Reinforcement Learning from Real Panoramic Images.
Other
504 stars 130 forks source link

How to modify the dataset path #136

Open Gaozzzz opened 6 months ago

Gaozzzz commented 6 months ago
self.sims[i].newEpisode([scanId], [viewpointId], [heading], [0])

ValueError: MatterSim: Could not open skybox RGB files at: ./data/v1/scans//sT4fr6TAbpF/matterport_skybox_images/6e41a7632c5a4048a17a316d7192b97e_skybox_small.jpg

I think the cause of this error is a bug with './data/v1/scans/', how can I modify this part

jdiazram commented 5 months ago

@Gaozzzz I have the same problem. Could you solve it?

Gaozzzz commented 5 months ago

@jdiazram sorry, I have not solve it yet

jdiazram commented 5 months ago

@Gaozzzz I solved this by reinitiating all (cloning, docker, everything XD), using the docker, and creating another directory with repo matterport3Dsimulator, installing the minimum for my problem with pip3. And now it's working fine so far.

Gaozzzz commented 5 months ago

@jdiazram Thank you very much for your detailed guide. Good luck with your research.

SuneoLi commented 2 months ago

Yes, the cause of this error is the bug with the default data root './data/v1/scans/'.

To fix it, I used the following steps...

  1. Open the Matterport3DSimulator project with VScode, then Ctrl + Shift + F to open the search bar and enter the original default path "data/v1/scans". (PS: Do not enter the “/” before “data”); e85663664e8b3b528923c5c7a6bdc1c
  2. Replace your search with your own dataset path, for instance, change all "data/v1/scans" to "/xxx/xxx/v1/scans/";
  3. Delete the folder "build"; rm -rf ./build/
  4. Re-execute cmake (These two lines are the same command); cmake -D OPENGL_opengl_LIBRARY=/usr/lib/x86_64-linux-gnu/libGL.so -D PYTHON_EXECUTABLE=/home/xxx/.conda/envs/xxx/bin/python3 -DEGL_RENDERING=ON ..
  5. Re-execute make; make -j8
  6. Copy the two compiled .so files into the conda environment's library; cp MatterSim.cpython-36m-x86_64-linux-gnu.so /home/xxx/.conda/envs/xxx/lib/python3.6/site-packages cp libMatterSim.so /home/xxx/.conda/envs/xxx/lib/python3.6/site-packages
  7. Rerun the test. ./build/tests ~Timing 4a44ae8598613742e4c5112c79243d3

Please note that your paths and mine may differ.