-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
type:bugBug in the Source Code of MediaPipe SolutionBug in the Source Code of MediaPipe Solution
Description
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Ubuntu 22.04
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
Python
MediaPipe version
0.10.32
Bazel version
No response
Solution
FaceLandmarker
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
File ".../mediapipe/tasks/python/core/mediapipe_c_utils.py", line 232, in handle_status raise exception NotImplementedError: ValidatedGraphConfig Initialization failed. ImageCloneCalculator: GPU processing is disabled in build flags ImageCloneCalculator: GPU processing is disabled in build flags
Describe the expected behaviour
The 0.10.32 Linux wheel should include the necessary build flags to support the GPU delegate, just as the 0.10.31 release did.
Standalone code/steps you may have used to try to get what you need
Please see logs
Other info / Complete Logs
Title: [Python] GPU Delegate regression in Linux wheel 0.10.32 (Works in 0.10.31)
System information
OS Platform and Distribution: Linux (e.g., Ubuntu 22.04)
MediaPipe Tasks SDK version: 0.10.32
Python version: [Insert your Python version, e.g., 3.10]
Describe the problem: The MediaPipe Python wheel for Linux (manylinux_2_28_x86_64) in version 0.10.32 appears to have been built without GPU support flags.
Requesting the GPU delegate via python.BaseOptions.Delegate.GPU results in a NotImplementedError, stating that GPU processing is disabled in the build flags.
Note: This is a regression. The exact same code works perfectly with GPU acceleration on the previous 0.10.31 wheel.
Provide the exact sequence of commands / steps that you executed:
pip install mediapipe==0.10.32
Run the following Python code:
Python
from mediapipe.tasks import python
base_options = python.BaseOptions( model_asset_path=model_path, delegate=python.BaseOptions.Delegate.GPU, )
**Complete Error Log:**
Plaintext
File ".../mediapipe/tasks/python/core/mediapipe_c_utils.py", line 232, in handle_status
raise exception
NotImplementedError: ValidatedGraphConfig Initialization failed.
ImageCloneCalculator: GPU processing is disabled in build flags
ImageCloneCalculator: GPU processing is disabled in build flags
Expected behavior: The 0.10.32 Linux wheel should include the necessary build flags to support the GPU delegate, just as the 0.10.31 release did.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:bugBug in the Source Code of MediaPipe SolutionBug in the Source Code of MediaPipe Solution