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

Colab Demo Broken #189

Open
kommanderpi opened this issue Mar 13, 2024 · 2 comments
Open

Colab Demo Broken #189

kommanderpi opened this issue Mar 13, 2024 · 2 comments

Comments

@kommanderpi
Copy link

When installing colmap in colab there seems to be an issue that results in this:

/content/neuralangelo

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 12>()
10 # Import imaginaire modules.
11 from projects.nerf.utils import camera, visualize
---> 12 from third_party.colmap.scripts.python.read_write_model import read_model
13 # Read the COLMAP data.
14 cameras, images, points_3D = read_model(path=f"{colmap_path}/sparse", ext=".bin")

ModuleNotFoundError: No module named 'third_party.colmap'


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

@lexvandersluijs
Copy link

I'm also experiencing that the Colab demo is broken, with a different set of error messages:

frame=  100 fps=0.0 q=2.0 Lsize=N/A time=00:00:07.96 bitrate=N/A speed=  25x    
video:7275kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
colmap: error while loading shared libraries: libcudart.so.11.0: cannot open shared object file: No such file or directory
colmap: error while loading shared libraries: libcudart.so.11.0: cannot open shared object file: No such file or directory
colmap: error while loading shared libraries: libcudart.so.11.0: cannot open shared object file: No such file or directory
cp: cannot stat 'datasets/lego_ds2/sparse/0/*.bin': No such file or directory
projects/neuralangelo/scripts/run_colmap.sh: line 34: [: too many arguments
colmap: error while loading shared libraries: libcudart.so.11.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py", line 226, in <module>
    data_to_json(args)
  File "/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py", line 191, in data_to_json
    cameras, images, points3D = read_model(os.path.join(args.data_dir, "sparse"), ext=".bin")
  File "/content/neuralangelo/third_party/colmap/scripts/python/read_write_model.py", line 435, in read_model
    cameras = read_cameras_binary(os.path.join(path, "cameras" + ext))
  File "/content/neuralangelo/third_party/colmap/scripts/python/read_write_model.py", line 134, in read_cameras_binary
    with open(path_to_model_file, "rb") as fid:
FileNotFoundError: [Errno 2] No such file or directory: 'datasets/lego_ds2/sparse/cameras.bin'
Traceback (most recent call last):
  File "/content/neuralangelo/projects/neuralangelo/scripts/generate_config.py", line 83, in <module>
    generate_config(args)
  File "/content/neuralangelo/projects/neuralangelo/scripts/generate_config.py", line 30, in generate_config
    num_images = len(os.listdir(os.path.join(args.data_dir, "images")))
FileNotFoundError: [Errno 2] No such file or directory: 'datasets/lego_ds2/images'

@RIP-tommy
Copy link

I added "nvidia-cuda-toolkit" package when 'sudo apt-get install' in 2nd cell

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