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

Method __init__

ldm/modules/midas/midas/vit.py:10–12  ·  view source on GitHub ↗
(self, start_index=1)

Source from the content-addressed store, hash-verified

8
9class Slice(nn.Module):
10 def __init__(self, start_index=1):
11 super(Slice, self).__init__()
12 self.start_index = start_index
13
14 def forward(self, x):
15 return x[:, self.start_index :]

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected