Skip to content

TypeError while running ./docker/run_pose_estimation.bsh #13

@mlngan

Description

@mlngan

I successfully built a docker container that runs in --cpu-only mode following the instructions here - https://github.com/VisionSystemsInc/pix2face/tree/master/docker. During execution of the ./docker/run_pose_estimation.bsh script, the following python error occurs -- TypeError: Unable to convert function return value to a Python type! The signature was (arg0: face3d.perspective_camera_parameters) -> vgl_rotation_3d. Could there be an issue or mismatch between the python bindings?

./docker/run_pose_estimation.bsh images output --cpu-only
INPUT_DIR=images
OUTPUT_DIR=output
Running pix2face_cpu docker image
Running on CPU
loading /pix2face/pix2face_net/data/models/pix2face_unet_v10_pytorch0.4_cpu.pt ...
...done.
/input_dir/image.jpg
Traceback (most recent call last):
File "/pix2face/scripts/estimate_pose_batch.py", line 49, in
main(input_fname, output_fname)
File "/pix2face/scripts/estimate_pose_batch.py", line 35, in main
pose = pix2face_estimation.camera_estimation.estimate_head_pose(img, pix2face_net, cuda_device=cuda_device)
File "/pix2face/python/pix2face_estimation/camera_estimation.py", line 18, in estimate_head_pose
return extract_head_pose(estimate_camera(image, pix2face_net, cuda_device=cuda_device))
File "/pix2face/python/pix2face_estimation/camera_estimation.py", line 13, in extract_head_pose
yaw, pitch, roll = decompose_camera_rotation(camera_params.rotation.as_matrix(), pitch_offset=-7)
TypeError: Unable to convert function return value to a Python type! The signature was
(arg0: face3d.perspective_camera_parameters) -> vgl_rotation_3d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions