mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-06-26 18:18:11 +00:00
added __repr__ to GaussianModel
This commit is contained in:
parent
25b3cb8cc9
commit
27ef163bdf
@ -58,6 +58,17 @@ class GaussianModel:
|
|||||||
self.spatial_lr_scale = 0
|
self.spatial_lr_scale = 0
|
||||||
self.setup_functions()
|
self.setup_functions()
|
||||||
|
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
format_string = self.__class__.__name__ + '()'
|
||||||
|
for k, v in self.__dict__.items():
|
||||||
|
if torch.is_tensor(v):
|
||||||
|
format_string +=f" {k}:\t{tuple(v.shape)}\n"
|
||||||
|
else:
|
||||||
|
format_string += f"{k}:\t{v}\n"
|
||||||
|
return format_string
|
||||||
|
|
||||||
|
|
||||||
def capture(self):
|
def capture(self):
|
||||||
return (
|
return (
|
||||||
self.active_sh_degree,
|
self.active_sh_degree,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user