Skip to content

Instantly share code, notes, and snippets.

@obeshor
Created June 25, 2019 22:31
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 obeshor/4ef0c632fb5c2f060c4e6d36e8d6a950 to your computer and use it in GitHub Desktop.
Save obeshor/4ef0c632fb5c2f060c4e6d36e8d6a950 to your computer and use it in GitHub Desktop.
Load PlantVillage Dataset
#Load data
zip_file=tf.keras.utils.get_file(origin='https://storage.googleapis.com/plantdata/PlantVillage.zip',
fname='PlantVillage.zip', extract=True)
#Create the training and validation directories
data_dir = os.path.join(os.path.dirname(zip_file), 'PlantVillage')
train_dir = os.path.join(data_dir, 'train')
validation_dir = os.path.join(data_dir, 'validation')
@Sarathkrishnan
Copy link

'https://storage.googleapis.com/plantdata/PlantVillage.zip' link not exist. Could share dataset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment