(self, image, target)
| 126 | |
| 127 | class ToTensor: |
| 128 | def __call__(self, image, target): |
| 129 | # convert [0, 255] to [0, 1] |
| 130 | image = F.to_tensor(image) |
| 131 | return image, target |
| 132 | |
| 133 | |
| 134 | def build_transforms(cfg, is_train): |
nothing calls this directly
no outgoing calls
no test coverage detected