face_morpher icon indicating copy to clipboard operation
face_morpher copied to clipboard

FaceMorph error

Open sadhanareddy007 opened this issue 7 years ago • 5 comments

Hi i am new to python please can you tell me how to morph the images using commands in linux. when i am using this command python facemorpher/morpher.py --src=index.jpg --dest=index3.jpg Traceback (most recent call last): File "facemorpher/morpher.py", line 139, in verify_args(args) File "facemorpher/morpher.py", line 42, in verify_args if args['/home/newter/face_morpher/images'] is None: KeyError: '/home/newter/face_morpher/images'

thanks in advance

sadhanareddy007 avatar Sep 09 '17 08:09 sadhanareddy007

Hi. I cant reproduce the error. Are all the modules in requirements.txt installed? If the images are present with a face, the command should work: python facemorpher/morpher.py --src=index.jpg --dest=index3.jpg

alyssaq avatar Sep 18 '17 13:09 alyssaq

Hi ,i am trying to python face_morpher/averager.py --src=16.jpg --dest=ted_cruz.jpg --out=a.png but,the result i received: Usage: averager.py --images=<images_folder> [--blur] [--plot] [--background=(black|transparent|average)] [--width=] [--height=] [--out=] [--destimg=] Options: -h, --help Show this screen. --images= Folder to images (.jpg, .jpeg, .png) --blur Flag to blur edges of image [default: False] --width= Custom width of the images/video [default: 500] --height= Custom height of the images/video [default: 600] --out= Filename to save the average face [default: result.png] --destimg= Destination face image to overlay average face --plot Flag to display the average face [default: False] --background= Background of image to be one of (black|transparent|average) [default: black] --version Show version. there isn't a picture! Thanks in advance

DylanMaeng avatar Jan 02 '19 03:01 DylanMaeng

@SagerMaeng averager.py expects a folder of images. There is nothing to do with one image. You pass the full path of the folder: --images=<images_folder>

alyssaq avatar Jan 02 '19 03:01 alyssaq

oh,no ,i admitted that i was wrong ,but i corrected it ,the problem is the same.

DylanMaeng avatar Jan 02 '19 05:01 DylanMaeng

Remove all the flags and only use --images. E.g python facemorpher/averager.py --images=images If theres are face images, it will createresult.png

alyssaq avatar Jan 02 '19 09:01 alyssaq