Skip to content

Whenever I try to visualize through the GUI, I get this error. #171

@vanstrong12138

Description

@vanstrong12138

When I run this command, it gives an error.
python playground.py --gs_object /home/agilex/non_ros_workspace/3dgrut/runs/mydata_3dgut/mydata-2011_155849/ckpt_last.pt
`[17:05:03] [INFO] polyscope set to device2device mode. logger.py:67
[polyscope] Backend: openGL3_glfw -- Loaded openGL version: 3.3.0 NVIDIA 570.195.03
Traceback (most recent call last):
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/polyscope/device_interop.py", line 58, in resolve_default_device_interop_funcs
import cuda
ModuleNotFoundError: No module named 'cuda'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/agilex/non_ros_workspace/3dgrut/playground.py", line 70, in
run_demo(
File "/home/agilex/non_ros_workspace/3dgrut/playground.py", line 33, in run_demo
playground = Playground(gs_object, mesh_assets_folder, default_gs_config, envmap_assets_folder, buffer_mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/agilex/non_ros_workspace/3dgrut/threedgrut_playground/ps_gui.py", line 75, in init
self.init_polyscope(buffer_mode)
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/home/agilex/non_ros_workspace/3dgrut/threedgrut_playground/ps_gui.py", line 136, in init_polyscope
self.update_render_view_viz(force=True)
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/agilex/non_ros_workspace/3dgrut/threedgrut_playground/ps_gui.py", line 241, in update_render_view_viz
self.update_data_on_device(self.viz_render_color_buffer, sple_orad)
File "/home/agilex/non_ros_workspace/3dgrut/threedgrut_playground/ps_gui.py", line 174, in update_data_on_device
buffer.update_data_from_device(tensor_array.detach())
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/polyscope/managed_buffer.py", line 83, in update_data_from_device
mapped_buffer = self.get_mapped_buffer_CUDAOpenGL()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/polyscope/managed_buffer.py", line 116, in get_mapped_buffer_CUDAOpenGL
CUDAOpenGLMappedTextureBuffer(
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/polyscope/device_interop.py", line 351, in init
ensure_device_interop_funcs_resolve()
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/polyscope/device_interop.py", line 47, in ensure_device_interop_funcs_resolve
resolve_default_device_interop_funcs()
File "/home/agilex/miniconda3/envs/3dgrut_cuda12/lib/python3.11/site-packages/polyscope/device_interop.py", line 61, in resolve_default_device_interop_funcs
raise ImportError('This Polyscope functionality requires cuda bindings to be installed. Please install the cuda-python package. See https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html')
ImportError: This Polyscope functionality requires cuda bindings to be installed. Please install the cuda-python package. See https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html`

I also get this error when I run this command.
python train.py --config-name apps/nerf_synthetic_3dgrt.yaml path=./nerf_synthetic/lego out_dir=runs experiment_name=lego_3dgrt with_gui=True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions