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

Method __init__

src/patchcore/patchcore.py:20–23  ·  view source on GitHub ↗

PatchCore anomaly detection class.

(self, device)

Source from the content-addressed store, hash-verified

18
19class PatchCore(torch.nn.Module):
20 def __init__(self, device):
21 """PatchCore anomaly detection class."""
22 super(PatchCore, self).__init__()
23 self.device = device
24
25 def load(
26 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected