Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ksdkamesh99/28a4ec57fa48133dd43caa476c36e76c to your computer and use it in GitHub Desktop.
datagen=ImageDataGenerator(
width_shift_range=[-50,0,50,40,-30,60,70,80]
#width_shift_range=0.35
)
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