I notice that the class Hatememes set the text_column_name to 'plots' as follows
`class HateMemesDataset(BaseDataset):
def init(self, *args, split="", missing_info={}, **kwargs):
assert split in ["train", "val", "test"]
self.split = split
However, the make_arrow in write_hatememes.py, no column named 'plots' is defined,
dataframe = pd.DataFrame( data_list, columns=[ "image", "text", "label", "split", ], )
This may cause error "KeyError: 'Field "plots" does not exist in schema'" when training. I wonder if its a mistake or my misunderstood?
I encountered the same error. I think the purpose of 'text_to_columns' is to specify which column is text data. Changing 'plots' to 'text' can solve this error.
I notice that the class Hatememes set the text_column_name to 'plots' as follows `class HateMemesDataset(BaseDataset): def init(self, *args, split="", missing_info={}, **kwargs): assert split in ["train", "val", "test"] self.split = split
However, the make_arrow in write_hatememes.py, no column named 'plots' is defined,
dataframe = pd.DataFrame( data_list, columns=[ "image", "text", "label", "split", ], )
This may cause error "KeyError: 'Field "plots" does not exist in schema'" when training. I wonder if its a mistake or my misunderstood?