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

Issue with Running ´peptides-func-EX.yaml´ #2

Open
williamnyren opened this issue Mar 21, 2024 · 1 comment
Open

Issue with Running ´peptides-func-EX.yaml´ #2

williamnyren opened this issue Mar 21, 2024 · 1 comment

Comments

@williamnyren
Copy link

Hello,

I encountered an issue when running the example provided on the page using the following command:

python main.py --cfg configs/Mamba/peptides-func-EX.yaml wandb.use False

After the preprocessing phase was completed and just as the first training epoch was about to start, I received the following error:

Python

Traceback (most recent call last):
  File "/home/user/Documents/Graph-Mamba/main.py", line 175, in <module>
    train_dictcfg.train.mode)
  File "/home/user/Documents/Graph-Mamba/graphgps/logger.py", line 245, in write_epoch
    task_stats = self.classification_multilabel()
  File "/home/user/Documents/Graph-Mamba/graphgps/logger.py", line 146, in classification_multilabel
    'accuracy': reformat(acc(pred_score, true)),
  File "/home/user/Documents/Graph-Mamba/graphgps/metric_wrapper.py", line 323, in __call__
    return self.compute(preds, target)
  File "/home/user/Documents/Graph-Mamba/graphgps/metric_wrapper.py", line 311, in compute
    x = torch.stack(metric_val)  # PyTorch<=1.9
RuntimeError: stack expects a non-empty TensorList

For comparison, I also ran mnist-EX.yaml and peptides-struct-EX.yaml. Both of these scripts executed as expected without any issues. This leads me to believe that the issue is not related to my installation of the conda environment and all the packages.

Any guidance or assistance would be greatly appreciated.

Thank you.

@williamnyren williamnyren changed the title Unable to run example: peptides-func-EX.yaml Issue with Running ´peptides-func-EX.yaml´ Mar 21, 2024
@ChloeXWang
Copy link
Collaborator

Thank you for your feedback! I suspect it's with the torchmetrics version. Do you know which version you are using right now? Could you try installing torchmetrics==0.9.3 and see if that works?

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

2 participants