MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/midas/midas/blocks.py:209–226  ·  view source on GitHub ↗

Forward pass. Returns: tensor: output

(self, *xs)

Source from the content-addressed store, hash-verified

207 self.resConfUnit2 = ResidualConvUnit(features)
208
209 def forward(self, *xs):
210 """Forward pass.
211
212 Returns:
213 tensor: output
214 """
215 output = xs[0]
216
217 if len(xs) == 2:
218 output += self.resConfUnit1(xs[1])
219
220 output = self.resConfUnit2(output)
221
222 output = nn.functional.interpolate(
223 output, scale_factor=2, mode="bilinear", align_corners=True
224 )
225
226 return output
227
228
229

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected