ImportError: cannot import name 'LightningDataset' from 'torch_geometric.data'
zhi520 opened this issue · comments
zhi520 commented
MiDi/midi_src/datasets/adaptive_loader.py", line 6, in
from torch_geometric.data import LightningDataset
ImportError: cannot import name 'LightningDataset' from 'torch_geometric.data'
Clement Vignac commented
It's probably related to your pytorch_geometric version, can you check it using pip list
?
Clement
Guanglin Li commented
Hi, I found that the LightningDataset moved to torch_geometric.data.lightning.LightningDataset. Maybe you could try this.
Clement Vignac commented
Thank you, I have fixed the code accordingly.