hello
i am running a program , in which i have to use a dataset of images, now i need to give datapath of dataset to python program. i have tried so many methods to do the same but i failed. i got following error
ipython-input-6-20f5453ca716> in ()
3 t_no = 0
4 for img_no in range(20):
----> 5     imD = Image.open(Datapath + str(img_no+21) + ‘_training.tif’)
6     imD = np.array(imD)
7
/home/user/anaconda2/lib/python2.7/site-packages/PIL/Image.pyc in open(fp, mode)
2475
2476     if filename:
-> 2477         fp = builtins.open(filename, “rb”)
2478         exclusive_fp = True
2479
IOError: [Errno 2] No such file or directory: ‘/home/user/Desktop/images21_training.tif’
Thank you