MCPcopy Create free account
hub / github.com/DragonisCV/RAM / _train_preprocessing

Method _train_preprocessing

ram/data/base/low_cost_dataset.py:53–55  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

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):

Callers 1

__getitem__Method · 0.95

Calls 3

augmentFunction · 0.90
random_cropFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected