GuangyuWangLab2021 / cellDancer

Predict RNA velocity through deep learning
https://guangyuwanglab2021.github.io/cellDancer_website/
BSD 3-Clause "New" or "Revised" License
60 stars 11 forks source link

torch version compatibility #23

Open stemjn opened 8 months ago

stemjn commented 8 months ago

It seems that cellDancer relies on torch version = 1.10.0.

However, my current torch version is 2.0.0.

I tried to install 1.10.0 but it seems that it is no longer available from PyTorch: "ERROR: No matching distribution found for torch==1.10.0"

I suspect that this incompatibility is the current source of the error I'm experiencing with cellDancer, which was described previously: "none of the genes predicted" (Issue #15).

May I ask if cellDancer can be updated to be compatible with torch version 2.0.0 or above?

Thank you.

Abclisy commented 5 months ago

Hello,

Thank you for reaching out. Your question looks related to this question. I tried in my conda environment and I was able to install torch==1.10.0. To get around it quickly, is it possible for you to build a new conda environment following the installation page and specify the python version with 3.7.6? We've tested many times under different devices and Python 3.7.6 works smoothly. If you still have this problem, please feel free to reach out.

Best, Shengyu