Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit b0b3912

Browse files
committed
Revert commit (close attribute not always present?)
1 parent 6c88712 commit b0b3912

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

keras_preprocessing/image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,6 @@ def _get_batches_of_transformed_samples(self, index_array):
17321732
target_size=self.target_size,
17331733
interpolation=self.interpolation)
17341734
x = img_to_array(img, data_format=self.data_format)
1735-
img.close()
17361735
params = self.image_data_generator.get_random_transform(x.shape)
17371736
x = self.image_data_generator.apply_transform(x, params)
17381737
x = self.image_data_generator.standardize(x)

0 commit comments

Comments
 (0)