Beispiel #1
0
 def test_scaling(self):
     # Check Scales
     dt = DataTransforms(self.d)
     h = 150
     w = 150
     scale = Image.fromarray(self.d).resize((h, w))
     check_scale = dt.scale(h, w)
     np.allclose(scale, check_scale)
Beispiel #2
0
 def test_scaling(self):
   # Check Scales
   dt = DataTransforms(self.d)
   h = 150
   w = 150
   scale = scipy.misc.imresize(self.d, (h, w))
   check_scale = dt.scale(h, w)
   np.allclose(scale, check_scale)