wenquanlu / HandRefiner

MIT License
701 stars 30 forks source link

Issue with pytorch_lightning #5

Closed dayunbao closed 5 months ago

dayunbao commented 6 months ago

I just tried to run the handrefiner.py script after installing everything in the requirements.txt file, and got this error:

ImportError: cannot import name 'get_num_classes' from 'torchmetrics.utilities.data'

I saw a lot of people have had this error in the past. The pytorch_lightning version in the requirements.txt file is pinned to 1.4.2, but the current stable version is 2.1.3. Is there a reason for using such an old version of pytorch_lightning?

wenquanlu commented 6 months ago

Oh, that is because when I installed the stable diffusion https://github.com/CompVis/stable-diffusion , I use their environment.yaml which is very old... I think you can use whatever version you would like as long as there is no major conflicts...