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

Method __init__

src/patchcore/patchcore.py:278–280  ·  view source on GitHub ↗
(self, patchsize, stride=None)

Source from the content-addressed store, hash-verified

276# Image handling classes.
277class PatchMaker:
278 def __init__(self, patchsize, stride=None):
279 self.patchsize = patchsize
280 self.stride = stride
281
282 def patchify(self, features, return_spatial_info=False):
283 """Convert a tensor into a tensor of respective patches.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected