MCPcopy Index your code
hub / github.com/DSL-Lab/StreamSplat / train

Method train

model/splat_model.py:43–47  ·  view source on GitHub ↗
(self, mode=True)

Source from the content-addressed store, hash-verified

41 self.lpips_loss = torch.compile(self.lpips_loss)
42
43 def train(self, mode=True):
44 super().train(mode)
45 if 'lpips_loss' in self.__dict__:
46 self.lpips_loss.eval()
47 return self
48
49 def state_dict(self, **kwargs):
50 """Remove non-trainable modules (LPIPS, tracker) from state dict before saving."""

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected