Repository navigation
Bazel changes
- Format C++ code and fix includes in util
- Format C++ code and fix includes in gpu/vulkan, gpu/webgpu, examples, and graphs
- Format C++ code and fix includes in modules
- Format C++ code and fix includes in tasks/cc/vision
- Bump MediaPipe version to 1.2.4 (after 1.2.3 release).
- Pre-populate input-to-output passthrough tensor buffers in InferenceRunnerLiteRt to avoid reading uninitialized memory.
- Format C++ code and fix includes in tasks/benchmark and tasks/cc
- Synchronize teardown in DrishtiPlayerInputSource and VideoPlayerCalculator.
- MediaPipe Tasks C APIs accept callback function pointers that Python ctypes
- Bump MediaPipe version to 1.3.0
- Validate ZIP entry bounds in ExtractFilesfromZipFile.
- Extend MpBaseOptions and CppConvertToBaseOptions with CPU, GPU, and NPU delegate options.
- Cut per-run overhead in the LiteRT inference runner for static-shape models
- Remove C++-only defaults from the MediaPipe Tasks C API headers
- Make the MediaPipe Tasks C API headers valid C99
- Add user_data and error_msg to the live-stream result callbacks of the Tasks C API, and free tasks on close even if closing fails. This change is source-incompatible for C callers: a callback needs the two new parameters.
- Return descriptive
InvalidArgumentErrormessages fromInferenceCalculatorMetalandInferenceRunnerLiteRtwhen models use tensor types, dynamic shapes, or operations unsupported by the requested GPU delegate. - Fix
SetAlphaCalculatorGLSL 1.20 shader compilation andQuadRenderervertex array binding on macOS OpenGL 2.1 GPU pipelines. - Support packed 3-channel output tensors in the Metal ImageToTensorConverter and add
metal_three_channel_outputto ImageToTensorCalculatorOptions. - Add native implementation for GetTexture2dData.
- Propagate wgpu::Instance and wgpu::Device to WebGpuTextureBuffer.
- WebGPU ImageToTensor converter: support border_mode like the other converters.
- Add shared MediaPipe Tasks LiteRT-LM BaseOptions helpers.
- Extract
MpTranscriptionSegmentintotasks/c/audio/core/transcription_segment.hso audio C API headers can share it. - Convert GPU RGBA8 segmentation masks to normalized float32 (
VEC32F1) inPoseLandmarkerandHolisticLandmarkerinstead of exposing raw RGBA bytes as float32 values. - Default LiteRT GPU precision to FP32 on desktop Linux Python
- Fix off-by-one class index truncation and live-stream float32 category mask handling in GPU
ImageSegmenter(SegmentationPostprocessorGl,PacketGetter, Java/C++ImageSegmenter, andInteractiveSegmenterLegacy). - Add MpAudioTranscriberValidateOptions to the AudioTranscriber C API.
- Update Swift Package Manager files for the 1.3.0 iOS release.
- Add NPU delegate and dispatch library directory support to MediaPipe UniversalEmbedder
MediaPipe Tasks update
This section should highlight the changes that are done specifically for any platform and don't propagate to
other platforms.
Android
- Expose BooleanQuestion and ChoiceQuestion examples in the Decision Maker Kotlin API.
- Bump MediaPipe Tasks Android minSdkVersion from 24 to 28 across all six AAR manifests, AAR build macros, and setup documentation to match the API 28 native JNI libraries.
- Expose FittedHead loading in the Decision Maker Kotlin API.
- Route AudioTranscriber and TextToSpeech JNI loading through JniConfig and add *_no_native targets.
iOS
- Add pure Swift language detector and remove Objective-C wrapper
- Add pure Swift text classifier and remove Objective-C wrapper
- Add pure Swift text embedder and remove Objective-C wrapper
- Add pure Swift text proofreader and remove Objective-C wrapper
- Add pure Swift text summarizer and remove Objective-C wrapper
- Add pure Swift audio classifier and remove Objective-C wrapper
- Add pure Swift audio transcriber
- Add pure Swift interactive segmenter
- Add pure Swift image classifier and remove Objective-C wrapper
- Add pure Swift image embedder and remove Objective-C wrapper
- Add pure Swift object detector and remove Objective-C wrapper
- Add pure Swift face detector and remove Objective-C wrapper
- Add pure Swift image segmenter
- Add pure Swift legacy interactive segmenter and remove Objective-C wrapper
- Add pure Swift gesture recognizer and remove Objective-C wrapper
- Add pure Swift pose landmarker and remove Objective-C wrapper
- Add pure Swift face landmarks connections
- Add pure Swift face landmarker and remove Objective-C wrapper
- Add pure Swift hand landmarker and remove Objective-C wrapper
- Add pure Swift holistic landmarker and remove Objective-C wrapper
- Add pure Swift task parts, embedding provider, and universal embedder
- Add pure Swift semantic retriever, vector store, and text chunker
- Flip AudioDataFormat initializer parameters to (channelCount:sampleRate:)
- Remove legacy Objective-C MediaPipe Tasks iOS APIs and tests
- Remove deprecated CocoaPods packaging, podspec templates, and build scripts from MediaPipe Tasks iOS.
- Make
MediaPipeTasksCommona dynamic XCFramework to fix duplicate calculator registration in hosted XCTest bundles and remove consumer-all_loadflags. - Normalize empty C strings to nil across optional iOS metadata properties.
- Migrate MediaPipe Tasks iOS unit and smoke tests from XCTest to Swift Testing.
Javascript
- Expose BooleanQuestion and ChoiceQuestion examples in the Decision Maker Web API.
- Add INPUT_PROMPT_UNSPECIFIED as the default DecisionInputPrompt in Decision Maker.
- Expose FittedHead loading in the Decision Maker Web API.
- Expose FittedHead export in the Decision Maker Web API.
- Remove
FilesetResolver.forGenAiTasksfromtasks/web/coreand move it totasks/web/genaiso non-GenAI Web Tasks packages no longer export it; migrate remaining.ts.templategenrules tomediapipe_ts_template. - Harmonize WebGPU device initialization across Web AudioTranscriber, TextToSpeech, and DecisionMaker tasks in preparation for extracting a shared helper.
- Extract shared
provideWebGpuDeviceandremoveWebGpuDevicehelpers intotasks/web/core/webgpu_device.tsand deduplicateAudioTranscriber,TextToSpeech, andDecisionMaker. - Add WebGPU-to-CPU fallback, pre-load option validation, deferred close, and VFS cleanup to Web AudioTranscriber.
Python
- Expose FittedHead loading and export in the Decision Maker C and Python APIs.
- Extract
TranscriptionSegmentintotasks/python/audio/core/transcription_segment.pyso Python audio tasks can share it. - Harden explicit .close() cleanup in Python vision tests
MediaPipe Dependencies
- Remove unnecessary legacy TFLite and graph dependencies from MediaPipe Audio Tasks.
- Update MediaPipe Tasks Web WASM files