MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / __call__

Method __call__

CV/PWCNet/data/datasets.py:38–39  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

36 self.w1 = random.randint(0, w - self.tw)
37
38 def __call__(self, img):
39 return img[self.h1:(self.h1 + self.th), self.w1:(self.w1 + self.tw), :]
40
41
42class StaticCenterCrop(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected