vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.75k stars 336 forks source link

No error message #195

Closed jeanpierrefakhry closed 1 year ago

jeanpierrefakhry commented 1 year ago

I'm trying to run the following command

python smplifyx/main.py --config cfg_files/fit_smplx.yaml \
    --data_folder  /content/data \
    --output_folder /content/data/smplifyx_results \
    --visualize=True \
    --gender='male' \
    --model_folder /content/smplx/models/ \
    --vposer_ckpt /content/vposer/vposer_v1_0 \
    --part_segm_fn smplx_parts_segm.pkl

I have all the requirements, the data_folder with the images and the keypoints from openpose, and both smplx and vposer prepared. This is what I get as an output:

Processing: /content/data/images/test.jpg
Found Trained Model: /content/vposer/vposer_v1_0/snapshots/TR00_E096.pt
Processing: /content/data/images/test1.jpg
Found Trained Model: /content/vposer/vposer_v1_0/snapshots/TR00_E096.pt
Processing the data took: 00 hours, 00 minutes, 05 seconds

And then it generates directories for each image, but no images nor meshes are inside of these directories (empty folders), any idea why this happening? Thanks!

kirak-kim commented 1 year ago

Hello, I was encountering the same problem and finally I found out that the problem is with the version of VPoser. I installed VPoser v1.0 from branch cvpr19 (by following #147 (comment) and now I'm getting the output! You can install VPoser v1.0 from branch cvpr19 by this command (pip install -e git+https://github.com/nghorbani/human_body_prior@cvpr19#egg=human_body_prior)

jeanpierrefakhry commented 1 year ago

Great, thanks!