PyTorch-ESCGAN
PyTorch-ESCGAN copied to clipboard
ValueError: The following electrodes have overlapping positions, which causes problems during visualization: CB1, CB2
求帮忙解决,这个错误怎么解决
Greeting,
The default 10-20 montage provided by mne doesn't include CB1 and CB2, whose locations are set to 0.0. Then, mne raises an error of overlap. You can either edit the montage locally (https://github.com/mne-tools/mne-python/blob/main/mne/channels/data/montages/standard_1020.elc) or set another montage:
import mne
import torch
from torcheeg.utils import plot_feature_topomap
from torcheeg.datasets.constants import SEED_CHANNEL_LIST
fake_eeg = torch.randn(62, 4)
img = plot_feature_topomap(fake_eeg,
channel_list=SEED_CHANNEL_LIST,
# see here montage=mne.channels.make_standard_montage('standard_1005'))
You can also disable this visualization function since it is not related to the paper.