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

Function conv3x3

lib/Resnet.py:17–20  ·  view source on GitHub ↗

3x3 convolution with padding

(in_planes, out_planes, stride=1)

Source from the content-addressed store, hash-verified

15
16
17def conv3x3(in_planes, out_planes, stride=1):
18 """3x3 convolution with padding"""
19 return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
20 padding=1, bias=False)
21
22
23class BasicBlock(nn.Module):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected