torcheeg
torcheeg copied to clipboard
ERROR loading DEAP Dataset on macOS
In deap.py, in process_record pkl_data = pkl.load(f, encoding='iso-8859-1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: invalid load key, '\x00'. This error is due to invalid load key .DS_Store: .DS_Store is a file automatically generated by macOS, so to resolve this problem, I added a filter: def set_records(self, root_path: str = './data_preprocessed_python', **kwargs): return [f for f in os.listdir(root_path) if f.endswith('.dat')]
Thank you for your report. It makes sense.
If you are willing, please feel free to open a pull request.