(self, data)
| 66 | |
| 67 | class DINOImageDataset(torch.utils.data.Dataset): |
| 68 | def __init__(self, data): |
| 69 | self.data = data |
| 70 | # only 224x224 ViT-B/32 supported for now |
| 71 | self.preprocess = self._transform_test(224) |
| 72 | |
| 73 | def _transform_test(self, n_px): |
| 74 | return Compose([ |
nothing calls this directly
no test coverage detected