Skip to content

Instantly share code, notes, and snippets.

@kamal2230
Created October 11, 2020 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal2230/c765d20d0311ff199cb1f1ef774e0fbc to your computer and use it in GitHub Desktop.
Save kamal2230/c765d20d0311ff199cb1f1ef774e0fbc to your computer and use it in GitHub Desktop.
test_gen = ImageDataGenerator(rescale=1./255)
test_generator = test_gen.flow_from_dataframe(
test_df,
validation_dir,
x_col = 'Image',
y_col = None,
class_mode = None,
target_size = (150, 150),
batch_size = 20,
shuffle = False
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment