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

Method __init__

ldm/modules/midas/midas/blocks.py:159–175  ·  view source on GitHub ↗

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

(self, features)

Source from the content-addressed store, hash-verified

157 """
158
159 def __init__(self, features):
160 """Init.
161
162 Args:
163 features (int): number of features
164 """
165 super().__init__()
166
167 self.conv1 = nn.Conv2d(
168 features, features, kernel_size=3, stride=1, padding=1, bias=True
169 )
170
171 self.conv2 = nn.Conv2d(
172 features, features, kernel_size=3, stride=1, padding=1, bias=True
173 )
174
175 self.relu = nn.ReLU(inplace=True)
176
177 def forward(self, x):
178 """Forward pass.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected