MCPcopy Create free account
hub / github.com/amazon-science/patchcore-inspection / __init__

Method __init__

src/patchcore/common.py:146–154  ·  view source on GitHub ↗
(self, input_dims, output_dim)

Source from the content-addressed store, hash-verified

144
145class Preprocessing(torch.nn.Module):
146 def __init__(self, input_dims, output_dim):
147 super(Preprocessing, self).__init__()
148 self.input_dims = input_dims
149 self.output_dim = output_dim
150
151 self.preprocessing_modules = torch.nn.ModuleList()
152 for input_dim in input_dims:
153 module = MeanMapper(output_dim)
154 self.preprocessing_modules.append(module)
155
156 def forward(self, features):
157 _features = []

Callers

nothing calls this directly

Calls 2

MeanMapperClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected