mediapipe
mediapipe copied to clipboard
Bazel run for Face Effect as a desktop app fails
I wish to run the face_effect graph in graphs/face_effect through a desktop example through demo_run_graph_main_gpu.cc. So, I created a new folder named face_effect in mediapipe/examples/desktop and added a build file with the following contents:-
licenses(["notice"])
package(default_visibility = ["//mediapipe/examples:__subpackages__"])
cc_binary(
name = "face_effect_gpu",
data = [
"//mediapipe/modules/face_detection:face_detection_short_range.tflite",
"//mediapipe/modules/face_landmark:face_landmark_with_attention.tflite",
],
deps = [
"//mediapipe/examples/desktop:demo_run_graph_main_gpu",
"//mediapipe/graphs/face_effect:face_effect_gpu_deps",
],
)
The build succeeds, but however, the run fails. When I run bazel-bin/mediapipe/examples/desktop/face_effect/face_effect_gpu --calculator_graph_config_file=mediapipe/graphs/face_effect/face_effect_gpu.pbtxt, I get the following error:-
I0000 00:00:1705225252.987829 17150 demo_run_graph_main_gpu.cc:60] Initialize the calculator graph.
I0000 00:00:1705225252.991718 17150 demo_run_graph_main_gpu.cc:64] Initialize the GPU.
I0000 00:00:1705225253.030466 17150 gl_context_egl.cc:85] Successfully initialized EGL. Major : 1 Minor: 5
I0000 00:00:1705225253.033527 17168 gl_context.cc:344] GL version: 3.2 (OpenGL ES 3.2 Mesa 23.0.4-0ubuntu1~22.04.1), renderer: Mesa Intel(R) Xe Graphics (TGL GT2)
I0000 00:00:1705225253.033605 17150 demo_run_graph_main_gpu.cc:70] Initialize the camera or load the video.
[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
I0000 00:00:1705225254.398506 17150 demo_run_graph_main_gpu.cc:91] Start running the calculator graph.
I0000 00:00:1705225254.402772 17150 demo_run_graph_main_gpu.cc:96] Start grabbing and processing frames.
F0000 00:00:1705225254.402965 17154 collection.h:418] Check failed: id < EndId() (1 vs. 1)
*** Check failure stack trace: ***
@ 0x55f2f42f98ad absl::lts_20230125::log_internal::LogMessageFatal::~LogMessageFatal()
@ 0x55f2f424a4f0 mediapipe::InputSidePacketHandler::SetInternal()
@ 0x55f2f424a857 mediapipe::InputSidePacketHandler::Set()
@ 0x55f2f4248f3e mediapipe::OutputSidePacketImpl::SetInternal()
@ 0x55f2f42492a5 mediapipe::OutputSidePacketImpl::Set()
@ 0x55f2f41f403c mediapipe::(anonymous namespace)::EnvGeneratorCalculator::Open()
@ 0x55f2f4248384 mediapipe::CalculatorNode::OpenNode()
@ 0x55f2f421d462 mediapipe::internal::SchedulerQueue::OpenCalculatorNode()
@ 0x55f2f421d7b2 mediapipe::internal::SchedulerQueue::RunNextTask()
@ 0x55f2f423a8bb mediapipe::ThreadPool::RunWorker()
@ 0x55f2f423b3f0 mediapipe::ThreadPool::WorkerThread::ThreadBody()
@ 0x7f5079c94ac3 (unknown)
Aborted (core dumped)
The other apps such as hand_tracking, face_detection etc. run fine. The error seems to happen after capture >> camera_frame_raw;
There have been at least 2 other issues (#3544, #3060) where the people raising it are facing the exact same problem, but no concrete answer has been given. Any help?
If not through the legacy solutions in C++, is there some way to do this using the Python API?
Hi @shreshtashetty,
I apologize for the delayed response. Could you please confirm if this issue has been resolved on your end, or if you still require assistance from us?
Thank you!!
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
This issue was closed due to lack of activity after being marked stale for past 7 days.