mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Unable to run face_effect, graph errors out on id check

Open abhisaar opened this issue 3 years ago • 4 comments

I am trying to run face_effect demo which renders the face paint and glasses. It is not included in the examples so I am making a binary using the provided library 'face_effect_gpu_deps'

My build file is at /mediapipe/examples/desktop/face_effect/BUILD similar to other provided examples

cc_binary(
    name = "face_effect_gpu",
    deps = [
        "//mediapipe/examples/desktop:demo_run_graph_main_gpu",
        "//mediapipe/graphs/face_effect:face_effect_gpu_deps",
    ],
)

On executing this binary, I get this error: collection.h:417 Check failed: id < EndId() (1 vs. 1)

I have been able to run all the other examples successfully on both CPU and GPU. Could you please let me know what is going wrong or provide an example to run face effects?

Build command: bazel build -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 mediapipe/examples/desktop/face_effect:face_effect_gpu

Run command (using the face_effect_gpu.pbtxt): GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/face_effect/face_effect_gpu --calculator_graph_config_file=mediapipe/graphs/face_effect/face_effect_gpu.pbtxt

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

  • Have I written custom code (as opposed to using a stock example script provided in Mediapipe): Modified stock example
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04, Android 11, iOS 14.4): Ubuntu 20.04.3 LTS
  • MediaPipe version: 0.8.9.1
  • Bazel version: 4.2.1
  • Solution (e.g. FaceMesh, Pose, Holistic): FaceMesh
  • Programming Language and version ( e.g. C++, Python, Java): C++

Describe the expected behavior: The face_effect module runs

Other info / Complete Logs : I20220206 22:37:01.470067 158366 demo_run_graph_main_gpu.cc:58] Initialize the calculator graph. I20220206 22:37:01.475389 158366 demo_run_graph_main_gpu.cc:62] Initialize the GPU. I20220206 22:37:01.482228 158366 gl_context_egl.cc:162] Successfully initialized EGL. Major : 1 Minor: 5 I20220206 22:37:01.529899 158383 gl_context.cc:334] GL version: 3.2 (OpenGL ES 3.2 NVIDIA 460.91.03) I20220206 22:37:01.530066 158366 demo_run_graph_main_gpu.cc:68] Initialize the camera or load the video. I20220206 22:37:01.701638 158366 demo_run_graph_main_gpu.cc:89] Start running the calculator graph. I20220206 22:37:01.705971 158366 demo_run_graph_main_gpu.cc:94] Start grabbing and processing frames. F20220206 22:37:01.706034 158369 collection.h:417] Check failed: id < EndId() (1 vs. 1) *** Check failure stack trace: *** @ 0x56281e95b0ab google::LogMessage::SendToLog() @ 0x56281e95705d google::LogMessage::Flush() @ 0x56281e9574cd google::LogMessageFatal::~LogMessageFatal() @ 0x56281e885864 mediapipe::internal::Collection<>::Get() @ 0x56281e8ae1a8 mediapipe::InputSidePacketHandler::SetInternal() @ 0x56281e8ae9c7 mediapipe::InputSidePacketHandler::Set() @ 0x56281e8ad16e mediapipe::OutputSidePacketImpl::SetInternal() @ 0x56281e8ad3b5 mediapipe::OutputSidePacketImpl::Set() @ 0x56281e85f1f4 mediapipe::(anonymous namespace)::EnvGeneratorCalculator::Open() @ 0x56281e8a243c mediapipe::CalculatorNode::OpenNode() @ 0x56281e88cebe mediapipe::internal::SchedulerQueue::OpenCalculatorNode() @ 0x56281e88d83b mediapipe::internal::SchedulerQueue::RunNextTask() @ 0x56281e8cbfe7 mediapipe::ThreadPool::RunWorker() @ 0x56281e8ccd59 mediapipe::ThreadPool::WorkerThread::ThreadBody() @ 0x7fda734ad609 start_thread @ 0x7fda700de293 clone @ (nil) (unknown) Aborted (core dumped)

abhisaar avatar Feb 09 '22 09:02 abhisaar

Hi @abhisaar, Can you share your code changes to troubleshoot the issue. Thanks!

sgowroji avatar Feb 10 '22 07:02 sgowroji

Thank you @sgowroji for your reply. Please find attached my build file (added a .txt so that Github will let me attach it). I am building the already provided targets at 'face_effect:face_effect_gpu_deps' and using the stock 'face_effect_gpu.pbtxt' file.

Happy to provide more details!

BUILD.txt

abhisaar avatar Feb 10 '22 09:02 abhisaar

Hi Sunil, would you need any other information from me? Thank you.

abhisaar avatar Feb 13 '22 19:02 abhisaar

Hi, I ran into same issue as well. Did you guys find any solution for that in the mean time? Thanks.

optimaltaskin avatar Jul 25 '22 12:07 optimaltaskin

Hello @abhisaar, We are upgrading the MediaPipe Legacy Solutions to new MediaPipe solutions However, the libraries, documentation, and source code for all the MediaPipe Legacy Solutions will continue to be available in our GitHub repository and through library distribution services, such as Maven and NPM.

You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. Thank you

kuaashish avatar Apr 28 '23 10:04 kuaashish

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.

github-actions[bot] avatar May 06 '23 01:05 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar May 13 '23 01:05 github-actions[bot]

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

google-ml-butler[bot] avatar May 13 '23 01:05 google-ml-butler[bot]