diff --git a/keras_preprocessing/image/iterator.py b/keras_preprocessing/image/iterator.py index f5a9b6cb..ac67595b 100644 --- a/keras_preprocessing/image/iterator.py +++ b/keras_preprocessing/image/iterator.py @@ -234,7 +234,7 @@ def _get_batches_of_transformed_samples(self, index_array): if hasattr(img, 'close'): img.close() if self.image_data_generator: - params = self.image_data_generator.get_random_transform(x.shape) + params = self.image_data_generator.get_random_transform(x.shape, self.seed) x = self.image_data_generator.apply_transform(x, params) x = self.image_data_generator.standardize(x) batch_x[i] = x diff --git a/keras_preprocessing/image/numpy_array_iterator.py b/keras_preprocessing/image/numpy_array_iterator.py index efd7734b..6f02e3eb 100644 --- a/keras_preprocessing/image/numpy_array_iterator.py +++ b/keras_preprocessing/image/numpy_array_iterator.py @@ -161,7 +161,7 @@ def _get_batches_of_transformed_samples(self, index_array): dtype=self.dtype) for i, j in enumerate(index_array): x = self.x[j] - params = self.image_data_generator.get_random_transform(x.shape) + params = self.image_data_generator.get_random_transform(x.shape, self.seed) x = self.image_data_generator.apply_transform( x.astype(self.dtype), params) x = self.image_data_generator.standardize(x)