(self, height=32, max_width=280, types='train')
| 74 | |
| 75 | class resizeNormalize(object): |
| 76 | def __init__(self, height=32, max_width=280, types='train'): |
| 77 | assert types in ['train','val','test'] |
| 78 | self.toTensor = transforms.ToTensor() |
| 79 | self.max_width = max_width |
| 80 | self.types = types |
| 81 | self.height = height |
| 82 | def __call__(self, img): |
| 83 | if (self.types == 'train' or self.types == 'val'): |
| 84 | w, h = img.size |
nothing calls this directly
no outgoing calls
no test coverage detected