Skip to content

Commit

Permalink
override TensorBase get_kwargs() function
Browse files Browse the repository at this point in the history
  • Loading branch information
stnamjef committed Nov 7, 2022
1 parent 64175fb commit 433ac2e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions TensoRF/models/tensoRF.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,35 @@ def __init__(self, aabb, gridSize, device,
if use_mask:
self.init_mask()

def get_kwargs(self):
return {
'aabb': self.aabb,
'gridSize':self.gridSize.tolist(),
'density_n_comp': self.density_n_comp,
'appearance_n_comp': self.app_n_comp,
'app_dim': self.app_dim,

'density_shift': self.density_shift,
'alphaMask_thres': self.alphaMask_thres,
'distance_scale': self.distance_scale,
'rayMarch_weight_thres': self.rayMarch_weight_thres,
'fea2denseAct': self.fea2denseAct,

'near_far': self.near_far,
'step_ratio': self.step_ratio,

'shadingMode': self.shadingMode,
'pos_pe': self.pos_pe,
'view_pe': self.view_pe,
'fea_pe': self.fea_pe,
'featureC': self.featureC,

'grid_bit': self.grid_bit,
'use_mask': self.use_mask,
'use_dwt': self.use_dwt,
'dwt_level': self.dwt_level
}

def init_svd_volume(self, res, device):
self.density_plane, self.density_line = self.init_one_svd(
self.density_n_comp, self.gridSize, 0.1, device)
Expand Down

0 comments on commit 433ac2e

Please sign in to comment.