question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when loading the COLOR-3 dataset from TUDataset

See original GitHub issue

🐛 Bug

Hi!

When I am trying to load dataset = TUDataset(root='../tmp/COLOR-3', name='COLOR-3') I get the following error:

Downloading https://www.chrsmrrs.com/graphkerneldatasets/COLOR-3.zip
Extracting ../tmp/COLOR-3/COLOR-3/COLOR-3.zip
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/HOME/studerl/.conda/envs/gale/lib/python3.7/site-packages/torch_geometric/datasets/tu_dataset.py", line 65, in __init__
    pre_filter)
  File "/HOME/studerl/.conda/envs/gale/lib/python3.7/site-packages/torch_geometric/data/in_memory_dataset.py", line 54, in __init__
    pre_filter)
  File "/HOME/studerl/.conda/envs/gale/lib/python3.7/site-packages/torch_geometric/data/dataset.py", line 89, in __init__
    self._download()
  File "/HOME/studerl/.conda/envs/gale/lib/python3.7/site-packages/torch_geometric/data/dataset.py", line 141, in _download
    self.download()
  File "/HOME/studerl/.conda/envs/gale/lib/python3.7/site-packages/torch_geometric/datasets/tu_dataset.py", line 131, in download
    os.rename(osp.join(folder, self.name), self.raw_dir)
FileNotFoundError: [Errno 2] No such file or directory: '../tmp/COLOR-3/COLOR-3/COLOR-3' -> '../tmp/COLOR-3/COLOR-3/raw'

I’m on a linux GPU cluster using python 3.7 and torch-geometric version 1.6.1.

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Dec 18, 2020

Thanks for letting me know. This is not easily fixable though, because this error is already present in the raw data. Therefore, the workaround to simply convert your data.y to int is needed.

1reaction
rusty1scommented, Dec 11, 2020

The name of the dataset is COLORS-3 (with an upper S).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when loading the COLOR-3 dataset from TUDataset #1915
Bug Hi! When I am trying to load dataset = TUDataset(root='../tmp/COLOR-3', name='COLOR-3') I get the following error: Downloading ...
Read more >
torch_geometric.datasets.tu_dataset - PyTorch Geometric
[docs]class TUDataset(InMemoryDataset): r"""A variety of graph kernel benchmark ... "If this error occurred while loading an already existing " "dataset, ...
Read more >
Can't use Color Datatype in Dataset tag anymore, error
Hi, i hope you guys are having a good day! TL;DR: Can't use color datatype in a dataset Tag, is this a bug?...
Read more >
Hands-On Guide to PyTorch Geometric (With Python Code) -
An example of loading the benchmark dataset is shown below: from torch_geometric.datasets import TUDataset dataset ...
Read more >
TUDataset — DGL 0.8.2post1 documentation
TUDataset contains lots of graph kernel datasets for graph classification. Parameters. name (str) – Dataset Name, such as ENZYMES , DD , COLLAB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found