(self, min_size: int, max_size: int)
| 403 | |
| 404 | class RandomSizeCrop(object): |
| 405 | def __init__(self, min_size: int, max_size: int): |
| 406 | self.min_size = min_size |
| 407 | self.max_size = max_size |
| 408 | |
| 409 | def __call__(self, img: PIL.Image.Image, target: dict): |
| 410 | w = random.randint(self.min_size, min(img.width, self.max_size)) |
nothing calls this directly
no outgoing calls
no test coverage detected