torcheeg icon indicating copy to clipboard operation
torcheeg copied to clipboard

Potential BUG detected (?)

Open edugm94 opened this issue 1 year ago • 0 comments

Hello,

I am using the class SEEDIVFeatureDataset, and I got the following error: RuntimeError: Unable to index the EEG signal sample with key 3_20140629.mat_1712!

The piece of code I am running is the following:

path = "/home/eduardo/phd/code/DDBB/SEED_IV"
    dataset = SEEDIVFeatureDataset(io_path=f'./seed4',
                                   root_path= path + '/eeg_feature_smooth',
                                   feature=['de_movingAve'],
                                   offline_transform=transforms.ToInterpolatedGrid(SEED_CHANNEL_LOCATION_DICT),
                                   online_transform=transforms.ToTensor(),
                                   label_transform=transforms.Select('emotion'))

    cv = LeaveOneSubjectOut()
    for i, (train_dataset, val_dataset) in enumerate(cv.split(dataset)):
        train_loader = DataLoader(train_dataset, batch_size=8, shuffle=True)
        val_loader = DataLoader(val_dataset, batch_size=8, shuffle=False)
        X, y = next(iter(train_loader))

If I learn the source of the problem, I will let you know. Any help or support is appreciated!

Thanks in advance.

edugm94 avatar Nov 10 '23 09:11 edugm94