(self, data)
| 40 | |
| 41 | class CLIPImageDataset(torch.utils.data.Dataset): |
| 42 | def __init__(self, data): |
| 43 | self.data = data |
| 44 | # only 224x224 ViT-B/32 supported for now |
| 45 | self.preprocess = self._transform_test(224) |
| 46 | |
| 47 | def _transform_test(self, n_px): |
| 48 | return Compose([ |
nothing calls this directly
no test coverage detected