mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Object Detection Tensorflow does not compile on Windows 11

Open PZerua opened this issue 3 years ago • 2 comments

System information (Please provide as much relevant information as possible)

  • OS Platform and Distribution: Windows 11 (21996.1)
  • Compiler version: 14.29.30133
  • Programming Language and version: C++
  • MediaPipe version: v0.8.10.2
  • Bazel version: 5.2.0
  • OpenCV version: 3.4.10

Describe the problem: When compiling Object Detection with Tensorflow model (as described here), it gives different compilation errors each time (I guess because of threaded compile). Also, debug and release builds give different errors. I can compile and execute the objectdetectioncpu example with no problem.

Again, not always the same file but: Release build always give errors related to REGISTER_KERNEL_BUILDER compiling org_tensorflow. Debug build always give errors related to conversion between types.

Provide the exact sequence of commands / steps that you executed before running into the problem:

Debug

set BAZEL_VS=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
set BAZEL_VC=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC
set BAZEL_VC_FULL_VERSION=14.29.30133
set BAZEL_WINSDK_FULL_VERSION=10.0.19041.0

bazel build -c dbg --define MEDIAPIPE_DISABLE_GPU=1 --define no_aws_support=true --linkopt=-s --action_env PYTHON_BIN_PATH="C://Users//GTI//AppData//Local//Programs//Python//Python310//python.exe" mediapipe/examples/desktop/object_detection:object_detection_tensorflow

Release

set BAZEL_VS=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
set BAZEL_VC=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC
set BAZEL_VC_FULL_VERSION=14.29.30133
set BAZEL_WINSDK_FULL_VERSION=10.0.19041.0

bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --define no_aws_support=true --linkopt=-s --action_env PYTHON_BIN_PATH="C://Users//GTI//AppData//Local//Programs//Python//Python310//python.exe" mediapipe/examples/desktop/object_detection:object_detection_tensorflow

Complete Logs: log_dbg.txt log_opt.txt

PZerua avatar Jul 18 '22 09:07 PZerua

Hi @PZerua, MediaPipe on windows is experimental, we could use your help to investigate. Thank you!

kuaashish avatar Sep 14 '22 10:09 kuaashish

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Sep 21 '22 10:09 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Sep 28 '22 11:09 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Sep 28 '22 11:09 google-ml-butler[bot]