MCPcopy Create free account
hub / github.com/IceClear/StableSR / __call__

Method __call__

scripts/util_image.py:606–607  ·  view source on GitHub ↗
(self, im)

Source from the content-addressed store, hash-verified

604 self.pch_size = pch_size
605
606 def __call__(self, im):
607 return random_crop(im, self.pch_size)
608
609class ImageSpliterNp:
610 def __init__(self, im, pch_size, stride, sf=1):

Callers

nothing calls this directly

Calls 1

random_cropFunction · 0.70

Tested by

no test coverage detected