MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/data/augmentation.py:150–154  ·  view source on GitHub ↗
(self, d1: int = 96, d2: int = 224, rotate: float = 1, ratio: float = 0.5)

Source from the content-addressed store, hash-verified

148
149class GridMask:
150 def __init__(self, d1: int = 96, d2: int = 224, rotate: float = 1, ratio: float = 0.5):
151 self.d1 = d1
152 self.d2 = d2
153 self.rotate = rotate
154 self.ratio = ratio
155
156 def __call__(self, img):
157 h, w = img.shape[-2:]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected