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

Windows support #34

Open
HalvarKelm opened this issue Feb 21, 2021 · 2 comments
Open

Windows support #34

HalvarKelm opened this issue Feb 21, 2021 · 2 comments

Comments

@HalvarKelm
Copy link

How can I run the build.py and predict.py on Windows?

A step by step guide of all required changes for Windows would be very helpful.

Even after applying the changes suggested by @kavinteng in #30 (comment) I receive the following ERROR:

grafik

And after adding an empty folder with an empty BUILD file at the requested path I receive yet another ERROR:

grafik

Thank you in advance!

@kavinteng
Copy link

!! not get to predict.py before complete build.py !!

please check that you have file in the error.

In my case , I cannot run multi hand because in the github of google/mediapipe not have that file.So, I run only hand_tracking_cpu

you can build bazel model by this command. change python path to your own.
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="PATH/python.exe" mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu

after build this cmd success. fix the build.py in the red line. that use bazel -bin path of "hand_tracking_cpu" and calculator_graph_config_file use "hand_tracking_desktop_live.pbtxt"
image

if the solve don't help. I so sorry and please double check in first part of build mediapipe and bazel
https://google.github.io/mediapipe/getting_started/install.html#installing-on-windows
https://google.github.io/mediapipe/getting_started/python.html#building-mediapipe-python-package

I hope this will help

@HalvarKelm
Copy link
Author

Thank you for answering.

Changing multi_hand_tracking to hand_tracking was a good suggestion!

I am using bazel 4.0.0 and opencv 4.5.1 and I now receive the following error while executing the build.py file:
grafik
This, however, seems to be a problem with my configuration. (I'd still be happy about suggestions.)

I will leave this issue open as the main problem is the lack of documentation on how to change files for windows users in the ReadMe.

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

2 participants