Created
March 3, 2019 12:03
-
-
Save aayushsahu/b4806991591cfda27ca6ec1081138d80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| 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