mediapipe-silicon

MediaPipe is the simplest way for researchers and developers to build world-class ML solutions and applications for mobile, edge, cloud and the web.


Keywords
mediapipe, arm64, prebuilt, python
License
Apache-2.0
Install
pip install mediapipe-silicon==0.8.11

Documentation

MediaPipe for Apple Silicon

PyPI

Prebuilt Google MediaPipe packages for Apple Silicon (arm64).

Install

To install the prebuilt packages, use the following command to install from PyPi. The package is called mediapipe-silicon but is a drop-in-replacement for the mediapipe package.

pip install mediapipe-silicon

As mentioned in #1 maybe it is necessary to limit the protobuf version, because the most recent one is not compatible:

pip install "protobuf>=3.11,<4"

Requirements.txt

To use mediapipe in a requirements.txt it is recommended to use the following structure. This will install either mediapipe or mediapipe-silicon.

mediapipe; platform_system != "Darwin" or platform.machine != "arm64"
mediapipe-silicon; platform_system == "Darwin" and platform.machine == "arm64"
protobuf>=3.11,<4

Build

To build the libraries yourself, please first install the following dependencies and run the build script.

brew install wget cmake protobuf bazelisk opencv@3
brew uninstall --ignore-dependencies glog
./build-macos.sh

The pre-built wheel packages should be in the dist directory.

About

MIT License - Copyright (c) 2023 Florian Bruggisser