Skip to content

Instantly share code, notes, and snippets.

@Shubhamai
Created April 21, 2020 07:51
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 Shubhamai/b65395795ac7bcfa653a395a789a541b to your computer and use it in GitHub Desktop.
Save Shubhamai/b65395795ac7bcfa653a395a789a541b to your computer and use it in GitHub Desktop.
train_generator = datagen.flow_from_dataframe(dataset,
directory='/kaggle/input/plant-pathology-2020-fgvc7/images/',
x_col='image_id',
y_col=['healthy', 'multiple_diseases', 'rust', 'scab'] ,
target_size=(512, 512),
class_mode='raw',
batch_size=8, shuffle=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment