Hello Fastai crew!
First post here…
Context - notebook 06 - multicat
Created a dataset consisting of one csv, plus train and validate folders with their respective pictures.
The csv file I created has the same format as in the exercise. However, when I train via
learn.fine_tune(), the error message
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/MyDrive/dest/dataset11/**train**/a-020_label_85.jpg
However, this file is in reality in the validation set.
Code for the data loaders:
dblock = DataBlock(blocks=(ImageBlock, MultiCategoryBlock),
item_tfms = RandomResizedCrop(128, min_scale=0.35))
dls = dblock.dataloaders(df)
And the other relevant functions:
def get_x( r ): return path/'train'/r['fname']
def get_y( r ): return r['labels'].split(' ')
`def splitter(df):` `train = df.index[df['is_valid'] == 0].tolist()` `valid = df.index[df['is_valid'] == 1].tolist()` `return train,valid`
Can you share some insight as to what might be causing the confusion between training and validation sets?
thanks in advance!