drprojects / superpoint_transformer

Official PyTorch implementation of Superpoint Transformer introduced in [ICCV'23] "Efficient 3D Semantic Segmentation with Superpoint Transformer" and SuperCluster introduced in [3DV'24 Oral] "Scalable 3D Panoptic Segmentation As Superpoint Graph Clustering"
MIT License
601 stars 75 forks source link

Docker - Project root directory not found in superpoint_transformer_tutorial #149

Closed Schmidt-J closed 2 months ago

Schmidt-J commented 2 months ago

Hi, I recently heard your presentation at the 3D Academy and tried to do the superpoint_transformer_tutorial. I run into a similar issue as #23 and #59 with this error message:

FileNotFoundError: Project root directory not found. Indicators: ('.project-root', 'setup.cfg', 'setup.py', '.git', 'pyproject.toml')

Unfortunatly i don't knw how to fix this. I'm running the code via Jupyter Notebook on a Docker container.

grafik

This is what the project folder looks like at the moment:

image

I would be glad if you could help me.

drprojects commented 2 months ago

Hi @Schmidt-J, have you made any modification to the codebase ? Is the notebook you are running located in the notebooks/ directory or somewhere else on your machine ?

Schmidt-J commented 2 months ago

@drprojects thank you for the quick response. The notebook is located in notebooks/. But i used drag and drop within jupyter notebook from a windows computer to open it, because i couldn't access the notebook from within jupyter notebook directly. I didn't modify the codebase.

drprojects commented 2 months ago

But i used drag and drop within jupyter notebook from a windows computer to open it, because i couldn't access the notebook from within jupyter notebook directly.

What do you mean ? Could you use Jupyter lab instead and open the notebook from there, by browsing files ?

Which directory does your notebook's python interpreter live in ?

import os
os.getcwd()

Have you tried manually changing the path to the notebooks/ directory at the beginning of your notebook ?

import os
os.chdir('/path/to/your/superpoint_transformer/')
Schmidt-J commented 2 months ago

Which directory does your notebook's python interpreter live in ?

/opt/notebooks

What do you mean ? Could you use Jupyter lab instead and open the notebook from there, by browsing files ?

I cannot browse files there for some reason (I'm new to Docker).

Have you tried manually changing the path to the notebooks/ directory at the beginning of your notebook ?

This solved the problem with the error so far:

import os
os.chdir('/path/to/your/superpoint_transformer/')

Thank you for the help.

drprojects commented 2 months ago

On a general note, we do not officially support nor work with Docker. So if more Docker-specific issues arise, I might not be able to help. However, I would happily integrate any PR from you that would make the code more portable for Docker environments :wink:

Finally, since you opened an issue here (and received some help), please remember:

If you ❤️ or simply use this project, don't forget to give the repository a ⭐, it means a lot to us !