Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ksdkamesh99/9d46b35d192a00665f44bd432160e65a to your computer and use it in GitHub Desktop.
datagen=ImageDataGenerator(
shear_range=60
)
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