Hi everyone,
I tried running the MonoGS project for a few weeks. First, I tried to run it on a Windows 11 system with CUDA 11.7 and PyTorch 1.13.1, but I encountered the following error:
Win11:
User
Traceback (most recent call last):
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\slam.py", line 252, in <module>
slam = SLAM(config, save_dir=save_dir)
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\slam.py", line 110, in __init__
self.frontend.run()
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\utils\slam_frontend.py", line 392, in run
render_pkg = self.tracking(cur_frame_idx, viewpoint)
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\utils\slam_frontend.py", line 164, in tracking
render_pkg = render(
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\gaussian_splatting\gaussian_renderer\__init__.py", line 65, in render
viewmatrix=viewpoint_camera.world_view_transform,
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\utils\camera_utils.py", line 96, in world_view_transform
return getWorld2View2(self.R, self.T).transpose(0, 1)
File "C:\Users\Unreal User\Desktop\alp_akbaci_masterstudent\github_projects\MonoGS\gaussian_splatting\utils\graphics_utils.py", line 41, in getWorld2View2
C2W = torch.linalg.inv(Rt)
torch._C._LinAlgError: linalg.inv: The diagonal element 1 is zero, the inversion could not be completed because the input matrix is singular.
Thinking it might be related to Windows, I followed the instructions in the project’s readme and set up a virtual environment on Ubuntu (WSL) 20.04 with CUDA 11.6 and PyTorch 1.12.1. However, I still couldn’t successfully run the demo, and I’m getting the following errors:
WSL/Ubuntu 20.04:
User
Traceback (most recent call last):
File "/home/unreal_user/anaconda3/envs/MonoGS/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/home/unreal_user/anaconda3/envs/MonoGS/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/home/unreal_user/MonoGS/utils/slam_backend.py", line 406, in run
self.initialize_map(cur_frame_idx, viewpoint)
File "/home/unreal_user/MonoGS/utils/slam_backend.py", line 90, in initialize_map
viewpoint, self.gaussians, self.pipeline_params, self.background
File "/home/unreal_user/MonoGS/gaussian_splatting/gaussian_renderer/__init__.py", line 66, in render
projmatrix=viewpoint_camera.full_proj_transform,
File "/home/unreal_user/MonoGS/utils/camera_utils.py", line 102, in full_proj_transform
self.projection_matrix.unsqueeze(0)
RuntimeError: CUDA error: CUBLAS_STATUS_NOT_SUPPORTED when calling `cublasSgemmStridedBatched( handle, opa, opb, m, n, k, &alpha, a, lda, stridea, b, ldb, strideb, &beta, c, ldc, stridec, num_batches)`
Also you can check directly on github
I would greatly appreciate it if someone could help me with this issue.
Kind Regards,