MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / __call__

Method __call__

utils.py:64–68  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

62 self.p = p
63
64 def __call__(self, img):
65 if random.random() < self.p:
66 return ImageOps.solarize(img)
67 else:
68 return img
69
70
71def load_pretrained_weights(model, pretrained_weights, checkpoint_key, model_name, patch_size):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected