Loading Cora/PubMed dataset is unsuccessful
See original GitHub issue🐛 Bug
This bug occurred when i tried to load Cora dataset.
from torch_geometric.datasets import Planetoid dataset = Planetoid(root='Cora', name='Cora')
Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.x Traceback (most recent call last): File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>
I noticed that I thought the download URL was wrong, so I changed planetoid.py
` url = ‘https://github.com/kimiyoung/planetoid/raw/master/data’ #url = ‘https://github.com/kimiyoung/planetoid/tree/master/data’
`
But a new bug happened.
Processing... Traceback (most recent call last): File "<input>", line 1, in <module> File "<input>", line 34, in __init__ File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/data/in_memory_dataset.py", line 53, in __init__ pre_filter) File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 93, in __init__ self._process() File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 166, in _process self.process() File "<input>", line 59, in process File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/io/planetoid.py", line 19, in read_planetoid_data items = [read_file(folder, prefix, name) for name in names] File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/io/planetoid.py", line 19, in <listcomp> items = [read_file(folder, prefix, name) for name in names] File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/io/planetoid.py", line 67, in read_file else: _pickle.UnpicklingError: invalid load key, '\x0a'.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (2 by maintainers)
Top GitHub Comments
dataset = Planetoid(root=‘data/planetoid’, name=‘Cora’) this is my hierarchical structure
I meet same problem, Just download Cora datasets by browser, and copy it to the …/data/raw floder