MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / __init__

Method __init__

scene/gaussian_model.py:63–94  ·  view source on GitHub ↗
(self, sh_degree : int, gaussian_dim : int = 3, time_duration: list = [-0.5, 0.5], rot_4d: bool = False, force_sh_3d: bool = False, sh_degree_t : int = 0)

Source from the content-addressed store, hash-verified

61
62
63 def __init__(self, sh_degree : int, gaussian_dim : int = 3, time_duration: list = [-0.5, 0.5], rot_4d: bool = False, force_sh_3d: bool = False, sh_degree_t : int = 0):
64 self.active_sh_degree = 0
65 self.max_sh_degree = sh_degree
66 self._xyz = torch.empty(0)
67 self._features_dc = torch.empty(0)
68 self._features_rest = torch.empty(0)
69 self._scaling = torch.empty(0)
70 self._rotation = torch.empty(0)
71 self._opacity = torch.empty(0)
72 self.max_radii2D = torch.empty(0)
73 self.xyz_gradient_accum = torch.empty(0)
74 self.denom = torch.empty(0)
75 self.optimizer = None
76 self.percent_dense = 0
77 self.spatial_lr_scale = 0
78
79 self.gaussian_dim = gaussian_dim
80 self._t = torch.empty(0)
81 self._scaling_t = torch.empty(0)
82 self.time_duration = time_duration
83 self.rot_4d = rot_4d
84 self._rotation_r = torch.empty(0)
85 self.force_sh_3d = force_sh_3d
86 self.t_gradient_accum = torch.empty(0)
87 if self.rot_4d or self.force_sh_3d:
88 assert self.gaussian_dim == 4
89 self.env_map = torch.empty(0)
90
91 self.active_sh_degree_t = 0
92 self.max_sh_degree_t = sh_degree_t
93
94 self.setup_functions()
95
96 def capture(self):
97 if self.gaussian_dim == 3:

Callers

nothing calls this directly

Calls 1

setup_functionsMethod · 0.95

Tested by

no test coverage detected