When I am running the following code on Google colab,
tf.data.Dataset.list_files('/content/gdrive/MyDrive/Experiment/train/*.jpg')
I am getting the following error:
InvalidArgumentError Traceback (most recent call last)
<ipython-input-4-8d9cebdfe01f> in <module>()
----> 1 tf.data.Dataset.list_files('/content/gdrive/MyDrive/Experiment/train/*.jpg')
3 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/ops/control_flow_ops.py in Assert(condition, data, summarize, name)
162 op=None,
163 message="Expected '%s' to be true. Summarized data: %s" %
--> 164 (condition, "\n".join(data_str)))
165 return
166
InvalidArgumentError: Expected 'tf.Tensor(False, shape=(), dtype=bool)' to be true. Summarized data: b'No files matched pattern: /content/gdrive/MyDrive/Experiment/train/*.jpg'
I am stuck with this problem for the last two weeks, please help me out. Also, I have mounted the Google drive successfully before running the above lines of code.
