nerfstudio-project / gsplat

CUDA accelerated rasterization of gaussian splatting
https://docs.gsplat.studio/
Apache License 2.0
2.24k stars 284 forks source link

Errors of rasterize #266

Open mingqiJ opened 4 months ago

mingqiJ commented 4 months ago

I always failed to install the gsplat. So I transfer other people's conda environment to run the gsplat, but it takes this error:

Traceback (most recent call last):
  File "test.py", line 17, in <module>
    colors, alphas, meta = rasterization(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/rendering.py", line 360, in rasterization
    render_colors, render_alphas = rasterize_to_pixels(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/cuda/_wrapper.py", line 481, in rasterize_to_pixels
    render_colors, render_alphas = _RasterizeToPixels.apply(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/torch/autograd/function.py", line 506, in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/cuda/_wrapper.py", line 824, in forward
    render_colors, render_alphas, last_ids = _make_lazy_cuda_func(
  File "/home/anaconda3/envs/gs/lib/python3.8/site-packages/gsplat/cuda/_wrapper.py", line 12, in call_cuda
    return getattr(_C, name)(*args, **kwargs)
RuntimeError: Failed to set maximum shared memory size (requested 7168 bytes), try lowering tile_size.

Could you tell me how to correct install the gsplat?

AtticusZeller commented 4 months ago

try lowering tile_size

vasile-v1 commented 2 months ago

try lowering tile_size

How to setting, where?

DabblerGISer commented 2 weeks ago

Hi, have you solved this problem? kindly ask for the solution, thank you very much.

AtticusZeller commented 2 weeks ago

here is the docs,which defines the function rasterization

use ctrl +f in browser to find which parameters you wanna have a look

hope it would help :) @vasile-v1 @DabblerGISer

DabblerGISer commented 2 weeks ago

here is the docs,which defines the function rasterization

use ctrl +f in browser to find which parameters you wanna have a look

hope it would help :) @vasile-v1 @DabblerGISer

Thank you for your reply! I'm not solving configuration locally. It runs perfectly on my conda env. But now I'm trying to pack my project to use on another computer, and it turns out that the rasterization part can't reference the cuda code correctly. Im looking for a good way to solve this.