https://github.com/cansik/mediapipe-silicon
Prebuilt Google MediaPipe packages for arm64.
https://github.com/cansik/mediapipe-silicon
arm64 mediapipe prebuilt python
Last synced: 2 months ago
JSON representation
Prebuilt Google MediaPipe packages for arm64.
- Host: GitHub
- URL: https://github.com/cansik/mediapipe-silicon
- Owner: cansik
- License: mit
- Created: 2022-04-21T12:24:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T07:12:39.000Z (over 2 years ago)
- Last Synced: 2025-07-05T09:04:17.351Z (4 months ago)
- Topics: arm64, mediapipe, prebuilt, python
- Language: PowerShell
- Homepage:
- Size: 32.2 KB
- Stars: 79
- Watchers: 4
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [MediaPipe](https://github.com/google/mediapipe) for Apple Silicon
[](https://pypi.org/project/mediapipe-silicon/)Prebuilt Google MediaPipe packages for Apple Silicon (`arm64`).
🥳 The official [MediaPipe 0.9.3.0](https://pypi.org/project/mediapipe/0.9.3.0/) now builds universal2 pip wheels for OSX. This means, `arm64` is now officially supported!
## Install
To install the prebuilt packages, use the following command to install from [PyPi](https://pypi.org/project/mediapipe-silicon/). The package is called **mediapipe-silicon** but is a drop-in-replacement for the mediapipe package.```
pip install mediapipe-silicon
```As mentioned in https://github.com/cansik/mediapipe-silicon/issues/1 maybe it is necessary to limit the `protobuf` version, because the most recent one is not compatible:
```bash
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 powershell
brew uninstall --ignore-dependencies glog
```The build script is written in powershell:
```
pwsh tools/build.ps1
```The pre-built wheel packages should be in the `dist` directory.
## About
MIT License - Copyright (c) 2023 Florian Bruggisser