image_format=<ImageFormat.SRGB: 1> __init__(): incompatible constructor arguments. #5379
Labels
os:linux-non-arm
Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.
platform:python
MediaPipe Python issues
stale
stat:awaiting response
Waiting for user response
task:face landmarker
Issues related to Face Landmarker: Identify facial features for visual effects and avatars.
type:support
General questions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Ubuntu 20.04.4 LTS
MediaPipe Tasks SDK version
mediapipe-0.10.11
Task name (e.g. Image classification, Gesture recognition etc.)
tasks.vision.FaceLandmarker
Programming Language and version (e.g. C++, Python, Java)
Python 3.8 (Conda)
Describe the actual behavior
Exception has occurred: TypeError init(): incompatible constructor arguments. The following argument types are supported: 1. mediapipe.python._framework_bindings.image.Image(image_format: mediapipe::ImageFormat_Format, data: numpy.ndarray[numpy.uint8]) 2. mediapipe.python._framework_bindings.image.Image(image_format: mediapipe::ImageFormat_Format, data: numpy.ndarray[numpy.uint16]) 3. mediapipe.python._framework_bindings.image.Image(image_format: mediapipe::ImageFormat_Format, data: numpy.ndarray[numpy.float32]) Invoked with: kwargs: image_format=<ImageFormat.SRGB: 1>,
Describe the expected behaviour
should not get exception.
Standalone code/steps you may have used to try to get what you need
I tried the image with numpy array - uint8, unit16, float32 but I keep getting this error.
The text was updated successfully, but these errors were encountered: