I am slowly learning Tensorflow, but having problem with loading the data I have downloaded into the model.
Keep getting: [Errno 2] No such file or directory
The file 'data' contain both 'train' and 'test'. Inside these 'train' & 'test' folder contain images (jpg) respectively.
This ipynb file is created in the same folder as the 'data' file.
PATH = os.path.join(os.path.dirname('data'))
train_dir = os.path.join(PATH, 'train')
test_dir = os.path.join(PATH, 'test')
num_train = len(os.listdir(train_dir))
num_test = len(os.listdir(test_dir))