Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected keyword argument 'upper_body_only' #1

Open
fenfen-code opened this issue Dec 23, 2021 · 3 comments
Open

unexpected keyword argument 'upper_body_only' #1

fenfen-code opened this issue Dec 23, 2021 · 3 comments

Comments

@fenfen-code
Copy link

when I use the sample_pose.py,I got an unexpected keyword argument 'upper_body_only',Please how could I fix it .My python is 3.6 with Anaconda.

@rem5
Copy link

rem5 commented Feb 21, 2022

This is due to an update of mediapipe:
https://github.com/google/mediapipe/releases/tag/v0.8.4

Just remove it:

holistic = mp_holistic.Holistic(
        min_detection_confidence=min_detection_confidence,
        min_tracking_confidence=min_tracking_confidence,
    )

@chaoshengt
Copy link

chaoshengt commented Feb 21, 2022

I can not find the code 'holistics.............'. @rem5

@rem5
Copy link

rem5 commented Feb 21, 2022

Because you use Pose in your example, remove the line corresponding to the parameter upper_body_only

pose = mp_pose.Pose(
        upper_body_only=upper_body_only,
        min_detection_confidence=min_detection_confidence,
        min_tracking_confidence=min_tracking_confidence,
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants