I’m trying to write the labeller, encodes and decodes methods for such a transform that gets the x’s and y’s from a dataframe but unsuccessfully. Any ideas on how to do go about with this?
@muellerzr I did do that and the vocab and o2i seem alright but i get the error : AttributeError: 'Series' object has no attribute 'read' when building the TfmdLists as follows:
Looks like you have to fix the dataframe and ensure the value of the path variable.
The value of df['name'][0] is 0<space>jpg/image_03860.jpg, ie., 0 is not the index, as per screenshot.
And the value print(path) is /home/harish3110/.fastai/data/oxford-102-flowers.