SJoJoK / 3DGStream

[CVPR 2024 Highlight] Official repository for the paper "3DGStream: On-the-fly Training of 3D Gaussians for Efficient Streaming of Photo-Realistic Free-Viewpoint Videos".
https://sjojok.github.io/3dgstream
MIT License
302 stars 18 forks source link

bwd_depth error #17

Closed AnudhinaDhanabalan closed 3 months ago

AnudhinaDhanabalan commented 3 months ago

File "train_frames.py", line 291, in train_one_frame s1_ress, s2_ress, pre_time, s1_time, s2_time = training_one_frame(lp.extract(args), op.extract(args), pp.extract(args), args.load_iteration, args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from) File "train_frames.py", line 84, in training_one_frame render_pkg = render(viewpoint_cam, gaussians, pipe, background) File "/home/arrstudios/Desktop/AI/3DGStream/gaussian_renderer/init.py", line 49, in render bwd_depth=pipe.bwd_depth TypeError: new() got an unexpected keyword argument 'bwd_depth'

SJoJoK commented 3 months ago

It seems that you didn't reinstall the submodules/diff-gaussian-rasterization by running pip install submodules/diff-gaussian-rasterization as we noted in the README, which is a submodule of this git repo.

AnudhinaDhanabalan commented 3 months ago

Traceback (most recent call last): File "train_frames.py", line 377, in train_frames(lp,op,pp,args) File "train_frames.py", line 335, in train_frames train_one_frame(lp,op,pp,args) File "train_frames.py", line 291, in train_one_frame s1_ress, s2_ress, pre_time, s1_time, s2_time = training_one_frame(lp.extract(args), op.extract(args), pp.extract(args), args.load_iteration, args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from) File "train_frames.py", line 84, in training_one_frame render_pkg = render(viewpoint_cam, gaussians, pipe, background) File "/home/arrstudios/Desktop/AI/3DGStream/gaussian_renderer/init.py", line 49, in render bwd_depth=pipe.bwd_depth TypeError: new() got an unexpected keyword argument 'bwd_depth'

AnudhinaDhanabalan commented 3 months ago

still having the same issue

SJoJoK commented 3 months ago

This issue arises because you use the wrong/old diff_gaussian_rasterization, in which the constructor of GaussianRasterizationSettings do not handle bwd_depth. Please check your diff_gaussianrasterization/__init_\.py. The diff_gaussian_rasterization used in this repo is https://github.com/SJoJoK/3DGStreamRasterizer/tree/39b62ce5fcd1bda46b04c0f93037a1aa85216925, not the one from the origin gaussian-splatting repo. If you install submodules/diff-gaussian-rasterization correctly, the diff_gaussian_rasterization that used in this code will be the modified/new one.

If you dont know how to deal with pip install, I suggest you run pip uninstall diff_gaussian_rasterization first and then run pip install submodules/diff-gaussian-rasterization.

AnudhinaDhanabalan commented 3 months ago

ERROR: Could not find a version that satisfies the requirement 3DGStreamRasterizer (from versions: none) ERROR: No matching distribution found for 3DGStreamRasterizer i am getting this error while installing what you said

SJoJoK commented 3 months ago

I'm not going to discuss the installation of the pip package in the issue because this is not related to our research codes. If you don't know how to use pip to install a local package, don't know how git submodule works and can't distinguish the difference between name of repository and name of python package, I suggest you create a new environment with necessary packages, then use git clone https://github.com/SJoJoK/3DGStream.git --recursive, and then use pip install submodules/diff-gaussian-rasterization