Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'face3d' has no attribute 'head_mesh' #5

Open
vishnu41 opened this issue Apr 5, 2019 · 2 comments
Open

AttributeError: module 'face3d' has no attribute 'head_mesh' #5

vishnu41 opened this issue Apr 5, 2019 · 2 comments

Comments

@vishnu41
Copy link

vishnu41 commented Apr 5, 2019

I tried running: python3 scripts/pix2face_demo.py
output:
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
loading /home/drive/pix2face/data/models/pix2face_unet_v10_pytorch0.4_cpu.pt ...
...done.
Estimating PNCC + Offsets..
..Done
Traceback (most recent call last):
File "scripts/pix2face_demo.py", line 38, in
head_mesh = face3d.head_mesh(pvr_data_dir)
AttributeError: module 'face3d' has no attribute 'head_mesh'

@huxianer
Copy link

@decrispell @andyneff @deuscovrigus I meet the same error,Could you help me to deal with it?Thanks!

@deuscovrigus
Copy link
Contributor

From what it looks like, I believe you built face3d against a different python than the one you're importing face3d in. The safest way is to activate a virtualenv and build face3d in it. That way you will ensure cmake picks up the correct python libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants