MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / __init__

Method __init__

dmidas/backbones/utils.py:7–9  ·  view source on GitHub ↗
(self, start_index=1)

Source from the content-addressed store, hash-verified

5
6class Slice(nn.Module):
7 def __init__(self, start_index=1):
8 super(Slice, self).__init__()
9 self.start_index = start_index
10
11 def forward(self, x):
12 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