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

Method load

src/patchcore/common.py:388–393  ·  view source on GitHub ↗
(self, load_folder: str, prepend: str = "")

Source from the content-addressed store, hash-verified

386 self.nn_method.reset_index()
387
388 def load(self, load_folder: str, prepend: str = "") -> None:
389 self.nn_method.load(self._index_file(load_folder, prepend))
390 if os.path.exists(self._detection_file(load_folder, prepend)):
391 self.detection_features = self._load(
392 self._detection_file(load_folder, prepend)
393 )

Callers

nothing calls this directly

Calls 4

_index_fileMethod · 0.95
_detection_fileMethod · 0.95
_loadMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected