MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / __init__

Method __init__

Image_Classification/src/utils/data.py:20–24  ·  view source on GitHub ↗
(self, n_holes, length)

Source from the content-addressed store, hash-verified

18 """
19
20 def __init__(self, n_holes, length):
21 if n_holes < 0 or length < 0:
22 raise ValueError("Must set n_holes or length args for cutout")
23 self.n_holes = n_holes
24 self.length = length
25
26 def __call__(self, img):
27 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected