Skip to content

Video not rendering, error code, gsplat: No CUDA toolkit found. gsplat will be disabled. #52

@gituser123456789000

Description

@gituser123456789000

(sharp) C:\Users\USERNAME\ml-sharp>sharp predict -i C:/Users/USERNAME/ml-sharp/input -o C:/Users/USERNAME/ml-sharp/output --render
2025-12-29 04:48:00,544 | INFO | Processing 38 valid image files.
2025-12-29 04:48:00,556 | INFO | Using device cuda
2025-12-29 04:48:00,556 | INFO | No checkpoint provided. Downloading default model from https://ml-site.cdn-apple.com/models/sharp/sharp_2572gikvuh.pt
2025-12-29 04:48:01,648 | INFO | Using preset ViT dinov2l16_384.
2025-12-29 04:48:04,541 | INFO | Using preset ViT dinov2l16_384.
2025-12-29 04:48:08,690 | INFO | Processing C:\Users\USERNAME\ml-sharp\input\FILENAME.jpeg
2025-12-29 04:48:08,692 | WARNING | Did not find focallength in exif data of C:\Users\USERNAME\ml-sharp\input\FILENAME.jpeg - Setting to 30mm.
2025-12-29 04:48:08,812 | INFO | Running preprocessing.
2025-12-29 04:48:08,905 | INFO | Running inference.
2025-12-29 04:48:09,925 | INFO | Running postprocessing.
2025-12-29 04:48:12,658 | WARNING | Received 3 reflection matrices from SVD. Flipping them to rotations.
2025-12-29 04:48:13,213 | INFO | Saving 3DGS to C:\Users\USERNAME\ml-sharp\output
2025-12-29 04:48:15,588 | INFO | Rendering trajectory to C:\Users\USERNAME\ml-sharp\output\FILENAME.mp4
gsplat: No CUDA toolkit found. gsplat will be disabled.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\USERNAME\miniconda3\envs\sharp\Scripts\sharp.exe_main
.py", line 6, in
sys.exit(main_cli())
~~~~~~~~^^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\click\core.py", line 1462, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\click\core.py", line 1383, in main
rv = self.invoke(ctx)
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\click\core.py", line 1850, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\click\core.py", line 1246, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\click\core.py", line 814, in invoke
return callback(*args, **kwargs)
File "C:\Users\USERNAME\ml-sharp\src\sharp\cli\predict.py", line 155, in predict_cli
render_gaussians(gaussians, metadata, output_video_path)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USERNAME\ml-sharp\src\sharp\cli\render.py", line 110, in render_gaussians
rendering_output = renderer(
gaussians.to(device),
...<3 lines>...
image_height=camera_info.height,
)
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\torch\nn\modules\module.py", line 1773, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\torch\nn\modules\module.py", line 1784, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\USERNAME\ml-sharp\src\sharp\utils\gsplat.py", line 93, in forward
colors, alphas, meta = gsplat.rendering.rasterization(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
means=gaussians.mean_vectors[ib],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<12 lines>...
eps2d=self.low_pass_filter_eps,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\gsplat\rendering.py", line 409, in rasterization
proj_results = fully_fused_projection(
means,
...<15 lines>...
opacities=opacities, # use opacities to compute a tigher bound for radii.
)
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\gsplat\cuda_wrapper.py", line 423, in fully_fused_projection
return _FullyFusedProjection.apply(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
means,
^^^^^^
...<13 lines>...
opacities,
^^^^^^^^^^
)
^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\torch\autograd\function.py", line 576, in apply
return super().apply(*args, **kwargs) # type: ignore[misc]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\gsplat\cuda_wrapper.py", line 1056, in forward
camera_model_type = _make_lazy_cuda_obj(
f"CameraModelType.{camera_model.upper()}"
)
File "C:\Users\USERNAME\miniconda3\envs\sharp\Lib\site-packages\gsplat\cuda_wrapper.py", line 28, in _make_lazy_cuda_obj obj = getattr(_C, name_split)
AttributeError: 'NoneType' object has no attribute 'CameraModelType'

I have 4090, CUDA Toolkit 13.1 installed, Graphic Drivers version 591.xx (I've read 580.xx+ is needed for CUDA Toolkit 13.1, so that should be fine).
Any ideas on fixing this?

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