scverse / scvi-tools

Deep probabilistic analysis of single-cell and spatial omics data
http://scvi-tools.org/
BSD 3-Clause "New" or "Revised" License
1.23k stars 350 forks source link

Problems of torchmetrics #3031

Open HelloWorldLTY opened 2 hours ago

HelloWorldLTY commented 2 hours ago

Report

Hi, I notice that the default setting will lead to a problem caused by torchmetrics when importing pertpy:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11648

To fix it, we should use: torchmetrics==0.11.4

I can create a pull request if necessary.

Version information

No response

Zethson commented 2 hours ago

Dear @HelloWorldLTY,

This might be an issue that you should report to the scvi-tools developers. Torchmetrics is a transitive dependency that we get from them. I'll transfer this to the scvi-tools repository.

canergen commented 2 hours ago

Can you expand on what the issue is with torchmetrics>0.11.4? I think in our tests it works without the version restriction. Generally, we try to avoid version pinning and fix the underlying issue that is incompatible. Torch and torchmetrics need to have corresponding versions - conda/pip should handle this. If you use custom install commands, can you share these?