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

Pin torchmetrics version #51

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Pin torchmetrics version #51

merged 1 commit into from
Oct 14, 2024

Conversation

gokceneraslan
Copy link
Collaborator

to fix the following error:

model = grelu.resources.load_model(project="borzoi",model_name="human_fold0", device='cuda:0')

File ~/mambaforge/envs/scverse/lib/python3.11/site-packages/grelu/lightning/metrics.py:137, in PearsonCorrCoef.__init__(self, num_outputs, average)
    135 def __init__(self, num_outputs: int = 1, average: bool = True) -> None:
    136     super().__init__()
--> 137     self.pearson = torchmetrics.PearsonCorrCoef(num_outputs=num_outputs)
    138     self.average = average

TypeError: PearsonCorrCoef.__init__() got an unexpected keyword argument 'num_outputs'

to fix the following error:

```pytb
model = grelu.resources.load_model(project="borzoi",model_name="human_fold0", device='cuda:0')

File ~/mambaforge/envs/scverse/lib/python3.11/site-packages/grelu/lightning/metrics.py:137, in PearsonCorrCoef.__init__(self, num_outputs, average)
    135 def __init__(self, num_outputs: int = 1, average: bool = True) -> None:
    136     super().__init__()
--> 137     self.pearson = torchmetrics.PearsonCorrCoef(num_outputs=num_outputs)
    138     self.average = average

TypeError: PearsonCorrCoef.__init__() got an unexpected keyword argument 'num_outputs'
```
@avantikalal avantikalal merged commit 8c5300d into main Oct 14, 2024
2 checks passed
@avantikalal avantikalal deleted the gokceneraslan-tm branch October 14, 2024 23:23
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

Successfully merging this pull request may close these issues.

2 participants