graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
12.44k stars 1.55k forks source link

submodules\diff-gaussian-rasterization\diff_gaussian_rasterization\__init__.py #696

Open yyyyiiiinnnn opened 3 months ago

yyyyiiiinnnn commented 3 months ago

Hello, I would like to ask why "hello" is not printed when I print out "hello" in the forward function in "submodules\diff-gaussian-rasterization\diff_gaussian_rasterization__init__.py", which makes me suspect that I This function is not passed during runtime. I would be very grateful if you could see it and help me answer it!

LoickCh commented 3 months ago

Hey, I think once you build the package, the actual library is in another path.

ex: /home/micromamba/envs/3dgs/lib/python3.11/site-packages/diff_gaussian_rasterization/init.py

You should either change this file or rebuild the package I think.

yyyyiiiinnnn commented 3 months ago

Thanks! I found it! ! I would also like to ask if I want to modify the content in "submodules\diff-gaussian-rasterization\cuda_rasterizer\forward.cu", where should I go to modify it (because I did not print it out when debugging in forward.cu Corresponding debugging content)

520jz commented 3 months ago

Thanks! I found it! ! I would also like to ask if I want to modify the content in "submodules\diff-gaussian-rasterization\cuda_rasterizer\forward.cu", where should I go to modify it (because I did not print it out when debugging in forward.cu Corresponding debugging content)

When debugging, you can't enter the contents of the .cu, because the .cu file is compiled into .so in advance and put it in your environment

yyyyiiiinnnn commented 3 months ago

Thanks! I found it! ! I would also like to ask if I want to modify the content in "submodules\diff-gaussian-rasterization\cuda_rasterizer\forward.cu", where should I go to modify it (because I did not print it out when debugging in forward.cu Corresponding debugging content)

When debugging, you can't enter the contents of the .cu, because the .cu file is compiled into .so in advance and put it in your environment

So if I want to modify the content in .cu, what should I do? Thanks!

PanagiotisP commented 2 months ago

Since this is cuda and cpp code, after making any changes, it is needed to recompile/rebuild by running pip install submodules/diff-gaussian-rasterization