np.random.seed(42)
src = (ImageList.from_csv(path, ‘train_v2.csv’,folder=‘planet_ understanding_the_amazon_from_space’ ,suffix=’.jpg’)
.split_by_rand_pct(0.2)
.label_from_df(label_delim=’ '))
data = (src.transform(tfms, size=128)
.databunch().normalize(imagenet_stats))
Error:
FileNotFoundError Traceback (most recent call last)
in ()
4 .label_from_df(label_delim=’ '))
5
----> 6 data = (src.transform(tfms, size=128)
7 .databunch().normalize(imagenet_stats))
7 frames
/usr/local/lib/python3.6/dist-packages/PIL/Image.py in open(fp, mode)
2764
2765 if filename:
-> 2766 fp = builtins.open(filename, “rb”)
2767 exclusive_fp = True
2768
FileNotFoundError: [Errno 2] No such file or directory: ‘/content/drive/My Drive/Project/planet_ understanding_the_amazon_from_space/planet_ understanding_the_amazon_from_space/train_0.jpg’