JhaKanchan15 / PPI_GNN

57 stars 19 forks source link

Runtime error #3

Open yangyangdotcom opened 1 year ago

yangyangdotcom commented 1 year ago

I was trying to replicate your result. I followed README.md to set up this repo. However, when I try to run it I got a Runtime error as followed:

RuntimeError: The 'data' object was created by an older version of PyG. If this error occurred while loading an already existing dataset, remove the 'processed/' directory in the dataset's root folder and try again.

I beleive this error occur because of the DataLoader in the data_prepare.py. Any solution on how to solve this? Much appreciated.

XpressDelusion commented 1 month ago

Add this into data_prepare.py: def bump(g): return Data.from_dict(g.__dict__) And for prot_1 & 2 in class LabelledDataset(Dataset_n) do: prot_1 = bump(prot_1) prot_2 = bump(prot_2)