(self, data)
| 81 | |
| 82 | class CLIPImageDataset(torch.utils.data.Dataset): |
| 83 | def __init__(self, data): |
| 84 | self.data = data |
| 85 | # only 224x224 ViT-B/32 supported for now |
| 86 | self.preprocess = self._transform_test(224) |
| 87 | |
| 88 | def _transform_test(self, n_px): |
| 89 | return Compose([ |
nothing calls this directly
no test coverage detected