aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/keras
diff options
context:
space:
mode:
authorGravatar Francois Chollet <fchollet@google.com>2018-10-01 10:01:20 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-01 10:05:32 -0700
commit03a18ca576410d49e8f0692464e35e900a54f59f (patch)
tree5e02708770f0ff59f3c27bf33a1ff9420e3cc11a /tensorflow/python/keras
parente285dea8d9626b832f34d65159639f294c2d6881 (diff)
Remove outdated integration test in preparation for update of keras_preprocessing.
PiperOrigin-RevId: 215231309
Diffstat (limited to 'tensorflow/python/keras')
-rw-r--r--tensorflow/python/keras/preprocessing/image_test.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/tensorflow/python/keras/preprocessing/image_test.py b/tensorflow/python/keras/preprocessing/image_test.py
index 362cbc1dc9..4abaadfcd3 100644
--- a/tensorflow/python/keras/preprocessing/image_test.py
+++ b/tensorflow/python/keras/preprocessing/image_test.py
@@ -94,43 +94,6 @@ class TestImage(test.TestCase):
self.assertEqual(x.shape[1:], images.shape[1:])
break
- def test_image_data_generator_with_validation_split(self):
- if PIL is None:
- return # Skip test if PIL is not available.
-
- for test_images in _generate_test_images():
- img_list = []
- for im in test_images:
- img_list.append(keras.preprocessing.image.img_to_array(im)[None, ...])
-
- images = np.vstack(img_list)
- generator = keras.preprocessing.image.ImageDataGenerator(
- validation_split=0.5)
- seq = generator.flow(
- images,
- np.arange(images.shape[0]),
- shuffle=False,
- batch_size=3,
- subset='validation')
- _, y = seq[0]
- self.assertEqual(list(y), [0, 1, 2])
- seq = generator.flow(
- images,
- np.arange(images.shape[0]),
- shuffle=False,
- batch_size=3,
- subset='training')
- _, y2 = seq[0]
- self.assertEqual(list(y2), [4, 5, 6])
-
- with self.assertRaises(ValueError):
- generator.flow(
- images,
- np.arange(images.shape[0]),
- shuffle=False,
- batch_size=3,
- subset='foo')
-
def test_image_data_generator_with_split_value_error(self):
with self.assertRaises(ValueError):
keras.preprocessing.image.ImageDataGenerator(validation_split=5)