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

Method __init__

dmidas/blocks.py:250–266  ·  view source on GitHub ↗

Init. Args: features (int): number of features

(self, features)

Source from the content-addressed store, hash-verified

248 """
249
250 def __init__(self, features):
251 """Init.
252
253 Args:
254 features (int): number of features
255 """
256 super().__init__()
257
258 self.conv1 = nn.Conv2d(
259 features, features, kernel_size=3, stride=1, padding=1, bias=True
260 )
261
262 self.conv2 = nn.Conv2d(
263 features, features, kernel_size=3, stride=1, padding=1, bias=True
264 )
265
266 self.relu = nn.ReLU(inplace=True)
267
268 def forward(self, x):
269 """Forward pass.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected