microsoft / Graphormer

Graphormer is a general-purpose deep learning backbone for molecular modeling.
MIT License
2.08k stars 334 forks source link

question about code #34

Closed huigoing closed 2 years ago

huigoing commented 2 years ago

Hello: I have a little question when runing your code.

image

Why execute the else statement and not execute if statement .

zhengsx commented 2 years ago

Hi, it depends on what type of idx passed in, and the esle statement is for slice indices. Would you please provide more information about how you instantiate MyGraphPropPredDataset()and call the __getitem__()?

huigoing commented 2 years ago

Thank your reply quickly.

I run the pcab.sh and hiv.sh scripts, I did not modify the codes. But cannot running, so I debug the codes and found not execute if statement. image

zhengsx commented 2 years ago

It seems that the error occurs when loading OGB dataset. We warp the dataloader in original OGB library, therefore I wonder

  1. do you check your python package environment with the requirements?
  2. Could you run OGB's official test case, e.g., here.
  3. The error message seems to be covered by the multiprocessing package, would you try to set num_workers=1 to see the error message? By the way, please note that the pre_trained model should be well prepared at here if you want to run hiv or pcba (here). And we recommend to run the code under Linux, since we have not tested the code under Windows.
zhengsx commented 2 years ago

Close this issue due to inactive. Feel free to raise a new one or reopen this one for any further question.