pix2face icon indicating copy to clipboard operation
pix2face copied to clipboard

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

Open vishnu41 opened this issue 6 years ago • 2 comments

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'

vishnu41 avatar Apr 05 '19 09:04 vishnu41

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

huxianer avatar Jun 12 '19 13:06 huxianer

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.

deuscovrigus avatar Jun 13 '19 13:06 deuscovrigus