-
Notifications
You must be signed in to change notification settings - Fork 12
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 #1
Comments
Hi, thanks for showing interest for the project. I think there are two difficulties in adding support on Windows:
|
|
Ah sorry forgot to mention that
It would be great if we have GPU support on every supported platform, I'm looking forward to your progress on bringing GPU support on Windows. |
That makes sense, I'll apply the patch and take a look. Regarding Windows GPU support, the originally author of the Windows ANGLE patches has an unmaintained repo with a few additional changes. I've forked it and will take a look at updating it for mediapipe master. |
@j20001970 I have successfully compiled GDMP using commit fbf3158 Build env specs:
Note: I had to do some tweaking since I already have OpenCV 4 installed and didn't want to break my current environment, but that just involved changing a few versions and changing the path to OpenCV in the EDIT: I'm dumb. I modified the wrong
This was for holistic tracking, ignore this for now since I also modified the wrong calculators.bzl file
When running the pose tracking graph from a pbtext file. Project files mimic the demo project.
I am looking into this. If that fails, I guess I'll try recompiling using MSVC + Powershell as recommended on the official Bazel docs |
Update! Moving the graphs/modules from I didn't see any references to hardcoded paths, so I guess this requirement is on the mediapipe-side? After running for about 1 second, the application stops processing data and starts spamming these errors:
Seems like the error might be coming from camera_helper_cv, investigating now |
After referencing recolor_calculator.cc, I found that cpu tracking requires RGB. RET_CHECK(input_mat.channels() == 3); // RGB only. I modified the cv::cvtColor(video_frame, video_frame, cv::COLOR_BGR2RGB);
auto input_frame = std::make_unique<mediapipe::ImageFrame>(
mediapipe::ImageFormat::SRGB, video_frame.cols, video_frame.rows,
mediapipe::ImageFrame::kGlDefaultAlignmentBoundary); Seems like making this a configurable flag might make sense. I'll start putting something together |
Yes, the hardcoded path is in the calculator configs. For example when loading TFLite model for CPU pose tracking, they use a calculator called PoseLandmarkModelLoader(in mediapipe/mediapipe/modules/pose_landmark/pose_landmark_model_loader.pbtxt) to select model path. When the path string reach LocalFileContentsCalculator, it will use GetResourceContents (which calls DefaultGetResourceContents, which is implemented by resource_util_godot.cc) to load the file. |
I think converting video frames depending on MEDIAPIPE_DISABLE_GPU would work. |
It would be more helpful if you could provide the information about the error you encounter while building for Windows, like what does the output show when Bazel failing to build. It might be some setup for Windows is missing, or the code syntax somewhere works on other compilers but MSVC doesn't like it (yeah that happened once before) or something else. |
GDMP library on Windows is actually compiled with MSVC. Bazel will need to be configured to locate the toolchain with |
@GeorgeS2019 The error is saying that your This is the build command I used before. Note: this is just an example and will need to be adjusted for your system. I ran this command via git bash. I have not built this project recently, so something might have changed.
|
What @you-win said is true, the path to python executable is not valid to Bazel. Can you check that there actually is python.exe on your setup's If you are building the library since tag As for precompiled library, I plan to provide Windows version on GDMP Demo after migrating several examples to newer MediaPipe Task API. |
Looks like Windows SDK is not installed on your setup, please read the updated README to make sure you've install the required stuffs. If you don't want to install the whole Visual Studio, you can use |
I tried to reproduce your situation in a Windows 10 VM but with no success. Is your Windows SDK installed on |
Windows support has been present for a while, I think this issue can be closed. |
Hi! I saw your project from a This week in Godot post. I'm working on a project that relies on face tracking data, and was planning on adding mediapipe support.
What are the difficulties in adding Windows support? I can take a look at tackling that.
The text was updated successfully, but these errors were encountered: