Skip to content

Instantly share code, notes, and snippets.

@ksdkamesh99
Created May 17, 2020 07:37
Show Gist options
  • Select an option

  • Save ksdkamesh99/a08558f8529fba18ad6c71f8163e0265 to your computer and use it in GitHub Desktop.

Select an option

Save ksdkamesh99/a08558f8529fba18ad6c71f8163e0265 to your computer and use it in GitHub Desktop.
datagen=ImageDataGenerator(
horizontal_flip=True
)
imagegen=datagen.flow_from_directory('images/',batch_size=1)
fig, rows =plt.subplots(nrows=1, ncols=4, figsize=(18,18))
for row in rows:
row.imshow(imagegen.next()[0][0].astype('uint8'))
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment