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

Method load_state_dict

model/splat_model.py:57–61  ·  view source on GitHub ↗

Load state dict, filtering out non-trainable modules if present.

(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

55 return state_dict
56
57 def load_state_dict(self, state_dict, strict=True):
58 """Load state dict, filtering out non-trainable modules if present."""
59 filtered_state_dict = {k: v for k, v in state_dict.items()
60 if not k.startswith('lpips_loss') and not k.startswith('tracker_prior')}
61 return super().load_state_dict(filtered_state_dict, strict=strict)
62
63 def forward_gaussians(self, frames, depths, cond_times=None):
64 # frames: [B, V, C, H, W]

Callers 11

mainFunction · 0.95
load_model_weightsFunction · 0.45
_build_depth_anythingMethod · 0.45
run.pyFile · 0.45
run_video.pyFile · 0.45
demo-run.pyFile · 0.45
app.pyFile · 0.45
_make_dinov2_dpt_deptherFunction · 0.45
_make_dinov2_modelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected