MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / __init__

Method __init__

src/data_loader/transform.py:14–18  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

12
13class GroupRandomCrop(object):
14 def __init__(self, size):
15 if isinstance(size, numbers.Number):
16 self.size = (int(size), int(size))
17 else:
18 self.size = size
19
20 def __call__(self, img_group):
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected