MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / __init__

Method __init__

pycontrast/datasets/RandAugment.py:391–394  ·  view source on GitHub ↗
(self, ops, num_layers=2, choice_weights=None)

Source from the content-addressed store, hash-verified

389
390class RandAugment:
391 def __init__(self, ops, num_layers=2, choice_weights=None):
392 self.ops = ops
393 self.num_layers = num_layers
394 self.choice_weights = choice_weights
395
396 def __call__(self, img):
397 # no replacement when using weighted choice

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected