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

Method forward

preprocess_depth_davis.py:135–139  ·  view source on GitHub ↗
(self, frames, depths, cond_times=None)

Source from the content-addressed store, hash-verified

133 self.depth_prior = DepthAnythingWrapper(opt.depth_model_name)
134
135 def forward(self, frames, depths, cond_times=None):
136 with torch.no_grad():
137 predicted_depth = self.depth_prior(depths).detach() # [B, H, W]
138 predicted_depth = F.interpolate(predicted_depth[:, None], size=frames.shape[-2:], mode="bilinear", align_corners=True)
139 return predicted_depth # [B, C, H, W]
140
141def run_inference(opt: Options):
142 train_dataset = DAVISDataset(opt, training=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected