Cysu / open-reid

Open source person re-identification library in python
https://cysu.github.io/open-reid/
MIT License
1.33k stars 348 forks source link

Problem with the file examine.softmax_loss.py #83

Closed SWRDFK closed 4 years ago

SWRDFK commented 5 years ago

When I run the file examine.softmax_loss.py, I met the folowing problem:

from sklearn.utils.extmath import pinvh ImportError: cannot import name 'pinvh'

So how to solve it? Thanks

djidje commented 5 years ago

I got the same problem, I have tried to solve it creating a virtual environment with pythorch 0.4.0 installed but now I've got a : ModuleNotFoundError: No module named 'reid' If someone have some advices.

Thanks

nik1806 commented 5 years ago

I am having the same error. This is probably due to new version of scikit-learn. In version 0.21 of scikit-learn pinvh has been removed. I am working of resolving the issue. Hopefully, i will update soon about the results.

nik1806 commented 5 years ago

Please downgrade scikit-learn to 0.20. It resolves the error.

But now i am getting the problem of ImportError: cannot import name 'imsave' from 'scipy.misc'

zyccccc commented 4 years ago

pip install scipy==1.2.1

zyccccc commented 4 years ago

pip install scipy==1.2.1