zhuhao-nju / hmd

Detailed Human Shape Estimation from a Single Image by Hierarchical Mesh Deformation (CVPR2019 Oral)
MIT License
267 stars 44 forks source link

TypeError: preproc_img() got an unexpected keyword argument 'margin' #3

Closed ghost closed 5 years ago

ghost commented 5 years ago

I tried to setup the data in wild demo and get this error after setting up hmr !python ./predict_hmr.py --img ./input/Duncan.jpg --crop_x 100 100 Namespace(crop_x=[100, 100], crop_y=-1, img='./input/Duncan.jpg', outf='./result/Duncan/', pad=0) Traceback (most recent call last): File "./predict_hmr.py", line 48, in margin = 30, normalize = True) TypeError: preproc_img() got an unexpected keyword argument 'margin'

zhuhao-nju commented 5 years ago

Problem is solved in the latest commit. Thanks for reporting.

ghost commented 5 years ago

@zhuhao-nju thanks that works now, also i set --gif True but there is no gif result in the results folder !!python ./predict_hmd.py --img ./input/James.jpg --gif True --mesh True Namespace(gif=True, gpu=True, img='./input/James.jpg', mesh=True, outf='./result/James/', step=True) initialize......done joint deform......done anchor deform......done vertex deform......done render and save......mesh saved to [%s]./result/James/0000_mesh.obj sh: 1: convert: not found ./input/James.jpg - finished, results are saved to [./result/James/] hmd done

zhuhao-nju commented 5 years ago

@ak9250 I think "sudo apt-get install imagemagick" should solve it, as the missing "convert" is from ImageMagic.

ghost commented 5 years ago

@zhuhao-nju yes that solved it thanks