face_morpher
face_morpher copied to clipboard
pip install facemorpher on Ubuntu
I use pip install facemorpher
and simple script to test it:
import facemorpher
facemorpher.averager(['1.jpg', '2.jpg'], plot=True)
it give me :
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import facemorpher
>>> facemorpher.averager(['face_morpher/1.jpg', 'face_morpher/2.jpg'], plot=True)
/usr/local/lib/python2.7/dist-packages/facemorpher/bin/stasm_util: 1: /usr/local/lib/python2.7/dist-packages/facemorpher/bin/stasm_util: �����#�
��!H__PAGEZERO�__TEXTp__text__TEXT: not found
/usr/local/lib/python2.7/dist-packages/facemorpher/bin/stasm_util: 6: /usr/local/lib/python2.7/dist-packages/facemorpher/bin/stasm_util: Syntax error: ")" unexpected
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/facemorpher/averager.py", line 61, in averager
img, points = load_image_points(path, size)
File "/usr/local/lib/python2.7/dist-packages/facemorpher/averager.py", line 47, in load_image_points
points = locator.face_points(path)
File "/usr/local/lib/python2.7/dist-packages/facemorpher/locator.py", line 34, in face_points
s = subprocess.check_output(command, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '"/usr/local/lib/python2.7/dist-packages/facemorpher/bin/stasm_util" -f "/usr/local/lib/python2.7/dist-packages/facemorpher/data" "face_morpher/1.jpg"' returned non-zero exit status 2
my issue as well
this is also my same issue, any solutions?
Solution is git clone https://github.com/alyssaq/face_morpher
and build stasm_util
by yourself.
pip install facemorpher
seems not work.
Hi all,
As @mrgloom pointed out, the stasm_util
binary only work on Mac. You can download the linux binary and replace it in the installed site-packages.
Hope that works!
I'm trying to use the PyStasm wrapper but it currently doesnt work on my machine.
I've build stasm_util
on Debian Jessie. You can find the file here.
@alyssaq: maybe you can rename it and add it to the repo, so Linux users can easily replace the file with this version?