返回“FileNotFoundError”,而文件已存在

时间:2021-06-03 03:33:12

标签: image google-colaboratory

我正在研究 TensorFlow,将图像转换为 Numpy 数组

当我运行代码时,返回错误“FileNotFoundError:没有这样的文件或目录”,如下图所示

No Such File or directory

因为文件已经存在。

所以,我检查路径

os.path.exists("/content/drive/MyDrive/Dog Vision/train (1)")

它返回 True

0 个答案:

没有答案
相关问题