ELM
ELM copied to clipboard
Question Regarding AttributeError in ELMDataset Class
I'm trying to replicate the ELM project, but I've encountered an error. Specifically, in the file elm_datasets.py, I receive the following error: File "/workspace/nkh1szh/ELM/lavis/datasets/datasets/elm_datasets.py", line 402, in getitem tmp_imglist = self.tmp_imglist[index] AttributeError: 'ELMDataset' object has no attribute 'tmp_imglist'
I initialized tmp_imglist as an empty list (tmp_imglist=[]) within the ELMDataset class. However, when executing the getitem() method, it throws a list index out of range error for tmp_imglist. Does the default_drivelm() function need to handle tmp_imglist in some way to ensure it is populated correctly before accessing it in getitem()?
Thank you for your help!