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

Can not run the docker image of version 0.1.14 #1168

Closed
songlin opened this issue Dec 25, 2022 · 3 comments · Fixed by #1328
Closed

Can not run the docker image of version 0.1.14 #1168

songlin opened this issue Dec 25, 2022 · 3 comments · Fixed by #1328

Comments

@songlin
Copy link

songlin commented Dec 25, 2022

Hi There,

Thanks for sharing the project. I am trying to run the project in docker. I pulled the image successfully.

docker pull dromni/nerfstudio:0.1.14

However, when I try to run the docker image with the following command:

docker run --gpus all -v /home/songlin/data:/workspace/ -v /home/songlin/.cache:/home/user/.cache/ -p 7007:7007 --rm -it dromni/nerfstudio:0.1.14

I met the error:

==========
== CUDA ==
==========

CUDA Version 11.7.1

Container image Copyright (c) 2016-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

[13:55:54] 🤷 .zshrc not found, skipping.                                                                 install.py:210
           🔍 Found .bashrc!                                                                              install.py:212
           ✔ Wrote new completion to /home/user/nerfstudio/scripts/completions/bash/_ns-install-cli!      install.py:117
           ✔ Wrote new completion to /home/user/nerfstudio/scripts/completions/bash/_ns-dev-test!         install.py:117
           ✔ Wrote new completion to /home/user/nerfstudio/scripts/completions/bash/_ns-process-data!     install.py:117
[13:55:55] ✔ Wrote new completion to /home/user/nerfstudio/scripts/completions/bash/_ns-download-data!    install.py:117
[13:55:56] ✔ Wrote new completion to /home/user/nerfstudio/scripts/completions/bash/_ns-eval!             install.py:117
           ❌ Completion script generation failed: ['ns-train', '--tyro-print-completion', 'bash']        install.py:107
           Matplotlib created a temporary config/cache directory at /tmp/matplotlib-fz54s6k1 because the  install.py:111
           default path (/home/user/.cache/matplotlib) is not a writable directory; it is highly
           recommended to set the MPLCONFIGDIR environment variable to a writable directory, in
           particular to speed up the import of Matplotlib and to better support multiprocessing.
           Traceback (most recent call last):
             File "/home/user/.local/bin/ns-train", line 5, in <module>
               from scripts.train import entrypoint
             File "/home/user/nerfstudio/scripts/train.py", line 50, in <module>
               from nerfstudio.configs.method_configs import AnnotatedBaseConfigUnion
             File "/home/user/nerfstudio/nerfstudio/configs/method_configs.py", line 46, in <module>
               from nerfstudio.field_components.temporal_distortions import TemporalDistortionKind
             File "/home/user/nerfstudio/nerfstudio/field_components/__init__.py", line 17, in <module>
               from .encodings import Encoding, ScalingAndOffset
             File "/home/user/nerfstudio/nerfstudio/field_components/encodings.py", line 34, in <module>
               import tinycudann as tcnn
             File "/home/user/.local/lib/python3.10/site-packages/tinycudann/__init__.py", line 9, in
           <module>
               from tinycudann.modules import free_temporary_memory, NetworkWithInputEncoding, Network,
           Encoding
             File "/home/user/.local/lib/python3.10/site-packages/tinycudann/modules.py", line 35, in
           <module>
               raise EnvironmentError(f"Could not find compatible tinycudann extension for compute
           capability {system_compute_capability}.")
           OSError: Could not find compatible tinycudann extension for compute capability 75.

Traceback (most recent call last):
  File "/home/user/.local/bin/ns-install-cli", line 8, in <module>
    sys.exit(entrypoint())
  File "/home/user/nerfstudio/scripts/completions/install.py", line 282, in entrypoint
    tyro.cli(main, description=__doc__)
  File "/home/user/.local/lib/python3.10/site-packages/tyro/_cli.py", line 127, in cli
    _cli_impl(
  File "/home/user/.local/lib/python3.10/site-packages/tyro/_cli.py", line 328, in _cli_impl
    out, consumed_keywords = _calling.call_from_args(
  File "/home/user/.local/lib/python3.10/site-packages/tyro/_calling.py", line 194, in call_from_args
    return unwrapped_f(*args, **kwargs), consumed_keywords  # type: ignore
  File "/home/user/nerfstudio/scripts/completions/install.py", line 251, in main
    completion_paths = list(
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
    yield _result_or_cancel(fs.pop())
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
    return fut.result(timeout)
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/user/nerfstudio/scripts/completions/install.py", line 253, in <lambda>
    lambda path_or_entrypoint_and_shell: _generate_completion(
  File "/home/user/nerfstudio/scripts/completions/install.py", line 112, in _generate_completion
    raise e
  File "/home/user/nerfstudio/scripts/completions/install.py", line 99, in _generate_completion
    new = subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ns-train', '--tyro-print-completion', 'bash']' returned non-zero exit status 1.
           ✔ Wrote new completion to /home/user/nerfstudio/scripts/completions/bash/_ns-render!           install.py:117

Can somebody help?

@brentyi
Copy link
Collaborator

brentyi commented Jan 24, 2023

It seems like this may be the same issue as #1056?

@XinyueZ
Copy link

XinyueZ commented Jan 30, 2023

I met the issue while installed docker version for
sudo docker run --gpus all -v /home/ubuntu/data:/workspace/ -v /home/ubuntu/.cache/:/home/user/.cache/ -p 7007:7007 --rm -it dromni/nerfstudio:0.1.16

@XinyueZ
Copy link

XinyueZ commented Jan 31, 2023

solved #1056 (comment)

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

Successfully merging a pull request may close this issue.

3 participants