(self, img)
| 51 | return imfrombytes(img_bytes, float32=True) |
| 52 | |
| 53 | def _train_preprocessing(self, img): |
| 54 | img = augment(img, hflip=self.opt.get('use_hflip', False), rotation=False) |
| 55 | return random_crop(img, self.opt['gt_size']) |
| 56 | |
| 57 | def _test_preprocessing(self, img): |
| 58 | if self.opt.get('test_crop', False): |
no test coverage detected