yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.95k stars 947 forks source link

numpy == 1.6 Error #100

Open kidapu opened 5 years ago

kidapu commented 5 years ago

I run pip install -r requirements.txt according to following in python 2.7.15.

https://github.com/YadiraF/PRNet/blob/master/requirements.txt

And I have met this kind of error.

$ python run_basics.py
Traceback (most recent call last):
  File "run_basics.py", line 5, in <module>
    from skimage.io import imread, imsave
  File "/Users/kidapu/.pyenv/versions/2.7.15/envs/2.7-prnet/lib/python2.7/site-packages/skimage/__init__.py", line 167, in <module>
    from .util.dtype import (img_as_float32,
  File "/Users/kidapu/.pyenv/versions/2.7.15/envs/2.7-prnet/lib/python2.7/site-packages/skimage/util/__init__.py", line 6, in <module>
    from .apply_parallel import apply_parallel
  File "/Users/kidapu/.pyenv/versions/2.7.15/envs/2.7-prnet/lib/python2.7/site-packages/skimage/util/apply_parallel.py", line 8, in <module>
    import dask.array as da
  File "/Users/kidapu/.pyenv/versions/2.7.15/envs/2.7-prnet/lib/python2.7/site-packages/dask/array/__init__.py", line 9, in <module>
    from .routines import (take, choose, argwhere, where, coarsen, insert,
  File "/Users/kidapu/.pyenv/versions/2.7.15/envs/2.7-prnet/lib/python2.7/site-packages/dask/array/routines.py", line 256, in <module>
    @wraps(np.matmul)
  File "/Users/kidapu/.pyenv/versions/2.7.15/lib/python2.7/functools.py", line 33, in update_wrapper
    setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'numpy.ufunc' object has no attribute '__module__'

I can fix this by replacing numpy version from 1.6 to 1.14.3.