rabBit64 / Sign-language-recognition-with-RNN-and-Mediapipe

Apache License 2.0
8 stars 0 forks source link

Windows support #34

Open HalvarKelm opened 3 years ago

HalvarKelm commented 3 years ago

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 https://github.com/rabBit64/Sign-language-recognition-with-RNN-and-Mediapipe/issues/30#issuecomment-776887925 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 commented 3 years ago

!! 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 commented 3 years ago

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.