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

How to modify the dataset path #136

Open
Gaozzzz opened this issue May 14, 2024 · 5 comments
Open

How to modify the dataset path #136

Gaozzzz opened this issue May 14, 2024 · 5 comments

Comments

@Gaozzzz
Copy link

Gaozzzz commented May 14, 2024

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

jdiazram commented Jun 5, 2024

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

@Gaozzzz
Copy link
Author

Gaozzzz commented Jun 6, 2024

@jdiazram sorry, I have not solve it yet

@jdiazram
Copy link

jdiazram commented Jun 6, 2024

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

Gaozzzz commented Jun 7, 2024

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

@SuneoLi
Copy link

SuneoLi commented Sep 23, 2024

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.

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

3 participants