Skip to content

Instantly share code, notes, and snippets.

@aayushsahu
Created March 3, 2019 12:03
Show Gist options
  • Select an option

  • Save aayushsahu/b4806991591cfda27ca6ec1081138d80 to your computer and use it in GitHub Desktop.

Select an option

Save aayushsahu/b4806991591cfda27ca6ec1081138d80 to your computer and use it in GitHub Desktop.
'''
Below code helps you import datasets from google drive.
It will label the images by folder name they are stored
in so the dataset must be in different folders all inside
the dataset folder.
'''
from google.colab import drive
drive.mount('/content/gdrive')
imagePaths=sorted(list(paths.list_images('/content/gdrive/My Drive/dataset/')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment