Skip to content

Comments

[MME] MME Performance Optimizations#1786

Draft
sun1lach wants to merge 2 commits intoopen-edge-platform:mainfrom
sun1lach:mme_optimizations
Draft

[MME] MME Performance Optimizations#1786
sun1lach wants to merge 2 commits intoopen-edge-platform:mainfrom
sun1lach:mme_optimizations

Conversation

@sun1lach
Copy link

@sun1lach sun1lach commented Feb 16, 2026

Description

Refactored Pre-Processing & Inference

  • Added AsyncInferQueue based OV inference.
  • Static shape model compilation for iGPU
  • ThreadPool for open_clip image parallel pre-processing.
  • Batching and padding of input tensors to allow optimal path through OV inference.

Video Decode

  • PyAV based video decode and video_decoder abstraction for usage from MME wrapper.
  • Support for Keyframes and Uniform sampled frames extraction.
  • Batching of decoded frames for parallel pipelined pre-processing and inference.
  • producer-consumer pattern for parallel decode and frame translation to PIL.

TODO

  • Functional for CLIP model, extend the optimization for other model handlers.
  • Remove unnecessary imports, add type hints, formatting etc.
  • README update for iGPU drivers, pre-requisites and usage.
  • Unit Tests

Partially backward compatible. Revert this patch to check/validate existing functionality.

Any Newly Introduced Dependencies

PyAV==16.1.0 (https://github.com/PyAV-Org/PyAV)

How Has This Been Tested?

ARL - Ultra 7 255H + iGPU (Development)

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes.
  • I have not introduced any 3rd party components incompatible with APACHE-2.0.
  • I have not included any company confidential information, trade secret, password or security token.
  • I have performed a self-review of my code.

 Pre-Processing & Inference:
 - Added `AsyncInferQueue` based OV inference.
 - Static shape model compilation for iGPU
 - ThreadPool for open_clip image parallel pre-processing
 Video Decode:
 - PyAV based video decode.
 - Support for Keyframes and Uniform sampled frames extraction.
 - Support RTSP Stream and Bytes input PyAV.
 - Multiple/Parallel decoder instance (file/rtsp/bytes).
 - Integrated PyAV decoder with VDMS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants