Skip to content

Instantly share code, notes, and snippets.

@ksdkamesh99
Created May 17, 2020 08:47
Show Gist options
  • Select an option

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

Select an option

Save ksdkamesh99/e297eb7ac04b2466c866e6501d53a93c to your computer and use it in GitHub Desktop.
datagen=ImageDataGenerator(
zoom_range=0.8
#zoom_range=[0.2,1.6]
)
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