jiaweir commited on
Commit
878fa33
β€’
1 Parent(s): 82b1157
Files changed (2) hide show
  1. app.py +0 -1
  2. gaussian_model_4d.py +1 -1
app.py CHANGED
@@ -6,7 +6,6 @@ from gradio_model4dgs import Model4DGS
6
  import numpy
7
  import hashlib
8
 
9
- os.system('pip install -e ./simple-knn')
10
  os.system('pip install -e ./diff-gaussian-rasterization')
11
  os.system('pip install xformers==0.0.23 --no-deps --index-url https://download.pytorch.org/whl/cu118')
12
 
 
6
  import numpy
7
  import hashlib
8
 
 
9
  os.system('pip install -e ./diff-gaussian-rasterization')
10
  os.system('pip install xformers==0.0.23 --no-deps --index-url https://download.pytorch.org/whl/cu118')
11
 
gaussian_model_4d.py CHANGED
@@ -18,7 +18,6 @@ from utils.system_utils import mkdir_p
18
  from plyfile import PlyData, PlyElement
19
  from random import randint
20
  from utils.sh_utils import RGB2SH
21
- from simple_knn._C import distCUDA2
22
  from utils.graphics_utils import BasicPointCloud
23
  from utils.general_utils import strip_symmetric, build_scaling_rotation
24
  from scene.deformation import deform_network
@@ -289,6 +288,7 @@ class GaussianModel:
289
  self.active_sh_degree += 1
290
 
291
  def create_from_pcd(self, pcd : BasicPointCloud, spatial_lr_scale : float, time_line: int):
 
292
  self.spatial_lr_scale = spatial_lr_scale
293
  fused_point_cloud = torch.tensor(np.asarray(pcd.points)).float().cuda()
294
  fused_color = RGB2SH(torch.tensor(np.asarray(pcd.colors)).float().cuda())
 
18
  from plyfile import PlyData, PlyElement
19
  from random import randint
20
  from utils.sh_utils import RGB2SH
 
21
  from utils.graphics_utils import BasicPointCloud
22
  from utils.general_utils import strip_symmetric, build_scaling_rotation
23
  from scene.deformation import deform_network
 
288
  self.active_sh_degree += 1
289
 
290
  def create_from_pcd(self, pcd : BasicPointCloud, spatial_lr_scale : float, time_line: int):
291
+ from simple_knn._C import distCUDA2
292
  self.spatial_lr_scale = spatial_lr_scale
293
  fused_point_cloud = torch.tensor(np.asarray(pcd.points)).float().cuda()
294
  fused_color = RGB2SH(torch.tensor(np.asarray(pcd.colors)).float().cuda())