FileNotFoundError: [Errno 2] No such file or directory: ‘./mnist_image_label/mnist_train_jpg_6000028755_0.jpg ‘
error in reading file
in tensorflow
Traceback (most recent call last):
File "Tensorflow/Test/9-26 mnist_train_ex1.py", line 43, in <module>
x_train,y_train = generateds(train_path,train_txt)
File "Tensorflow/Test/9-26 mnist_train_ex1.py", line 25, in generateds
img = Image.open(img_path) #读入图片
File "\envs\tf2.0-gpu\lib\site-packages\PIL\Image.py", line 2878, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './mnist_image_label/mnist_train_jpg_6000028755_0.jpg'
locates to line 25
img = Image.open(img_path) #读入图片
error reading image
view path
train_path = './mnist_image_label/mnist_train_jpg_60000'
found is missing “\”
reflect on the foundation and summarize
here
here is what’s under the file, so backslash