Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ksdkamesh99/e170bd5600a2d73998c43f0f7c4e6c7c to your computer and use it in GitHub Desktop.
datagen=ImageDataGenerator(
height_shift_range=0.25
#height_shift_range=[0,5,40,20]
)
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