floydhub / floyd-docs

FloydHub's documentation code. Contributions welcome!
https://docs.floydhub.com/
63 stars 65 forks source link

I would like to call all image files in the mounted datset #189

Closed laurence-lin closed 5 years ago

laurence-lin commented 5 years ago

In floyd command, I want to input two dataset under folder: laurence123/datasets/dog_cats/2/cat, laurence123/datasets/dog_cats/2/dog so I mounted the data set as: --data laurence123/datasets/dog_cats/2:/cat --data laurence123/datasets/dog_cats/2:/dog Then in my python code, I want to call all .jpg files under 'cat' and 'dog' files, so I use a method found online: Use glob packages: img_path = glob.glob('laurence123/datasets/dog_cats/2:/cat/*.jpg') However, img_path returns an empty list. It seems that on floydhub, I can't read all .jpg file normally like on my PC. How to call all image files from the mounted dataset?