MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

model/splat_model_inference.py:14–22  ·  view source on GitHub ↗
(self, opt: Options, **model_kwargs)

Source from the content-addressed store, hash-verified

12
13class SplatModel(StaticEncoder):
14 def __init__(self, opt: Options, **model_kwargs):
15 super().__init__(opt)
16 self.opt = opt
17 self.model = SplatPredictor(opt, **model_kwargs)
18 if hasattr(opt, 'compile') and opt.compile:
19 self.model = torch.compile(self.model)
20 self.gaussian_renderer = gaussian_renderer_dynamic.render
21 self.background = torch.tensor(opt.background_color, dtype=torch.float32, device="cuda")
22 self.lpips_loss = None
23
24 def load_state_dict(self, state_dict, strict=True):
25 # if opt.use_dino, remove missing keys related to condition_encoder

Callers

nothing calls this directly

Calls 1

SplatPredictorClass · 0.90

Tested by

no test coverage detected