Closed vascobailao closed 4 years ago
Hi, which PyG version did you use? I originally thought this might be caused by that you are using the latest PyG version. But I have tested with PyG 1.4.2 + PyTorch 1.4 + Python 3.8, and it worked fine. Also, which command did you execute?
Hi, I have found the reason. So you have used the "--dynamic-dataset" option. This option instantiates a MyDynamicDataset object defined in util_functions.py. The latest Pytorch_Geometric changes some of its Dataset class functions (the self.indices() had the same name as one of MyDaynamicDataset's attributes). Now I have fixed this issue by renaming this attribute. Please pull the latest changes and try again and it should work!
I have a problem, train_graph does not make num_features used on "self.convs.append(gconv(dataset.num_features, latent_dim[0]))" (maybe...?)
the code is on GNN class
I'm using the latest pyG version now because the pyG 1.4.2 version is not available.
could you give me some advice?
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 1448, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/limsungjun/projects/IGMC/Main.py", line 431, in
I solved this problem
1) num_features -> num_node_features 2) len() -> len()
@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?
@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?
I solved this problem, thank you for your attention!
@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?
I solved this problem, thank you for your attention!
Hi, I'm having the same issue. Can you please specify how exactly you solved this problem?
@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?
I solved this problem, thank you for your attention!
Hi, I'm having the same issue. Can you please specify how exactly you solved this problem?
Thanks. I did figure it out.
@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?
I solved this problem, thank you for your attention!
Hi, I'm having the same issue. Can you please specify how exactly you solved this problem?
- File "/IGMC/models.py", line 22: Change "num_features" to "num_node_features"
- .File "/IGMC/util_functions.py", line 135: Change "def len(self)" to "def len(self)" Then, you will solve this problem.
Thanks! I did figure it out.