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

Method __call__

scripts/util_image.py:471–476  ·  view source on GitHub ↗
(self, im, flag=None)

Source from the content-addressed store, hash-verified

469 pass
470
471 def __call__(self, im, flag=None):
472 if flag is None:
473 flag = random.randint(0, 7)
474
475 out = data_aug_np(im, flag)
476 return out
477
478# ----------------------Visualization----------------------------
479def imshow(x, title=None, cbar=False):

Callers

nothing calls this directly

Calls 1

data_aug_npFunction · 0.85

Tested by

no test coverage detected