(im, size)
| 131 | 4. normalize |
| 132 | """ |
| 133 | def _resize(im, size): |
| 134 | return cv2.resize(im.astype(np.float32)/255., size) |
| 135 | |
| 136 | im_batch = torch.cat([self.norm(_resize(im, self.size)).unsqueeze( |
| 137 | 0) for im in im_crops], dim=0).float() |
nothing calls this directly
no outgoing calls
no test coverage detected