(self, cvimage, boxes=None, labels=None)
| 202 | |
| 203 | class ToTensor(object): |
| 204 | def __call__(self, cvimage, boxes=None, labels=None): |
| 205 | return torch.from_numpy(cvimage.astype(np.float32)).permute(2, 0, 1), boxes, labels |
| 206 | |
| 207 | |
| 208 | class RandomSampleCrop(object): |
nothing calls this directly
no outgoing calls
no test coverage detected