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

Method __init__

lib/Resnet.py:26–34  ·  view source on GitHub ↗
(self, inplanes, planes, stride=1, downsample=None)

Source from the content-addressed store, hash-verified

24 expansion = 1
25
26 def __init__(self, inplanes, planes, stride=1, downsample=None):
27 super(BasicBlock, self).__init__()
28 self.conv1 = conv3x3(inplanes, planes, stride)
29 self.bn1 = NN.BatchNorm2d(planes) #NN.BatchNorm2d
30 self.relu = nn.ReLU(inplace=True)
31 self.conv2 = conv3x3(planes, planes)
32 self.bn2 = NN.BatchNorm2d(planes) #NN.BatchNorm2d
33 self.downsample = downsample
34 self.stride = stride
35
36 def forward(self, x):
37 residual = x

Callers

nothing calls this directly

Calls 2

conv3x3Function · 0.70
__init__Method · 0.45

Tested by

no test coverage detected