Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on training phase #15

Open
GiuliCler opened this issue Jan 5, 2021 · 2 comments
Open

Error on training phase #15

GiuliCler opened this issue Jan 5, 2021 · 2 comments

Comments

@GiuliCler
Copy link

Hi and thank you for the work! I tried the tool on Google Colaboratory with the cooked dataset https://drive.google.com/file/d/1AHxXQhS2UVKOxNUfuetrM-uVKHjpjSOs/view?usp=sharing and checkpoint https://drive.google.com/file/d/1xAnJwPEd1DzsxHW2Z_SLZikgiUwS6_zW/view?usp=sharing, loaded through torch.

After unzipped the cooked dataset and load the checkpoint of the model, run_main.sh script (with variables cooked_root, data_name and save_dir modified accordingly) has been launched for the training phase. After half an hour of training, this error appears:

ValueError: MessagePassing.propagate only supports torch.LongTensor of shape [2, num_messages] or torch_sparse.SparseTensor for argument edge_index.
0% 0/100 [00:04<?, ?it/s]

Any suggestions about it?

@Hanjun-Dai
Copy link
Collaborator

I guess this might be the version mismatch of pytorch_geometric.

You may want to downgrade the pytorch_geometric and its dependencies (torch_scatter, etc)

@GianlucaDeStefano
Copy link

GianlucaDeStefano commented Jan 4, 2023

In alternative, this error is addressable by simply stacking the edge indexes into a single tensor:
edge_indexes = torch.stack((list_edge_idx[i][0],list_edge_idx[i][1]))
t = self.conv_layers[lv](chunks[i], edge_indexes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants