Image & Video

LivePortrait expression swap notebook — free Colab, MediaPipe instead of InsightFace, MIT-licensed

Uses MediaPipe for permissive licensing; runs on free T4 GPU.

Deep Dive

A developer (u/coolt00nz) has released a free Colab notebook that enables facial expression swapping using the LivePortrait framework. The tool allows users to upload a source image with any expression and a target image whose expression will be changed. It uses MediaPipe for face detection instead of the more common InsightFace, which makes the entire pipeline commercially viable under MIT and Apache 2.0 licenses. The notebook runs on a free T4 GPU in Google Colab and provides adjustable sliders for both expression blend and head rotation, outputting upsampled 512×512 results while preserving the target's identity.

This release serves as a demo for Face2FaceAI, an Android app the developer is building that runs entirely on-device. Planned features include face reinsertion, asymmetry correction, template expressions, and more. The Colab notebook is available with a direct link to open in Colab and a GitHub repository. The developer is seeking feedback on this first public release, which makes advanced facial expression transfer accessible for commercial and research use without restrictive licensing.

Key Points
  • Replaces InsightFace with MediaPipe for permissive licensing (MIT + Apache 2.0).
  • Runs on free Colab T4 GPU with adjustable expression and head rotation sliders.
  • Outputs 512×512 upsampled images while preserving the target person's identity.

Why It Matters

Makes facial expression transfer commercially viable with open-source licensing and free GPU access.