Mindket

InsightFace-Face Swapper-on Video

Newversion 1 · updated

Overview

Replaces a face in a video clip with another face, using an InsightFace swapper model behind a small Streamlit page. Runs in the browser on Hugging Face or on your own computer.

InsightFace-Face Swapper-on Video is a kit in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python on Windows, macOS or Linux
  • The pip tool, to install the Python packages from requirements.txt
  • Nothing at all if you use the Space online, since it runs in the browser
Runs in
  • A web browser, on the Space's page at Hugging Face
  • Windows with Python
  • macOS with Python
  • Linux with Python
Start with
pip install -U huggingface_hub
hf download zerovic/InsightFace-Face_Swapper-on_video --repo-type space --local-dir InsightFace-Face_Swapper-on_video
cd InsightFace-Face_Swapper-on_video

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This Space replaces a face in a video clip with a different face. A small Streamlit app in app.py drives the swap, and the model file inswapper_128.onnx sits in the same repository. You can run it in the browser or copy it to your own computer.

Who it suits

People who edit or experiment with video and want a quick way to try a face swap without building a pipeline. Developers who want a short Streamlit example around an ONNX model will also find it handy.

IndustryWho uses itHow they use itExample
Video editingHobby editorsPut a stand-in face into a short clipTrying a different face on a test clip before real editing
EducationStudents of computer visionStudy how a face swap model handles moving picturesRunning one clip through the app and comparing it with the original
SoftwarePython developersRead app.py and reuse the idea in their own toolCopying the Space and changing the input clip

If you never work with video or faces in pictures, you can skip it.

Where to use it

  • A web browser, on the Space's page at Hugging Face
  • Windows with Python
  • macOS with Python
  • Linux with Python
Use caseWhoWhat they get back
Swap a face in a clipVideo hobbyistsThe same clip with a different face in it
Test a swapper modelStudents and developersA working demo to look at and run locally

How to set it up

You need only a little before you start.

  • Python on Windows, macOS or Linux
  • The pip tool, to install the Python packages from requirements.txt
  • Nothing at all if you use the Space online, since it runs in the browser
  1. Install the Hugging Face hub package.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Install Streamlit at the pinned version, then the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download zerovic/InsightFace-Face_Swapper-on_video --repo-type space --local-dir InsightFace-Face_Swapper-on_video
cd InsightFace-Face_Swapper-on_video
pip install streamlit==1.39.0
pip install -r requirements.txt
streamlit run app.py

How to use it

Online, open the Space's page and use the app there. On your own computer, run this command from the project folder and open the page Streamlit shows.

streamlit run app.py

Example

You open the Space and give the app a short video clip along with the face you want to place in it. The app hands back the clip with that face swapped in.

For newcomers and experts

If you are new to this, open the Space's page in your browser and try one short clip first. Nothing needs installing for that, and you will see quickly what the swap does.

If you know the field, the swapper is an ONNX model file stored in the repository next to a single app.py, and the hosted copy runs on basic CPU hardware. A CPU host has no graphics card to speed up video work, so long clips will probably take a while.

  1. Open the Space or run streamlit locally
  2. Give the app a video and a face
  3. app.py loads the inswapper_128.onnx model
  4. The face in the video is swapped
  5. You get the swapped video back

Good to know

The source states few limits, so check the results yourself.

  • License: MIT, as the Space's license line says
  • Cost to run: none named, and the hosted copy uses Hugging Face's basic CPU hardware
  • Data it reaches: the video and face you give it. The online copy runs on Hugging Face's servers, while a copy on your computer works on local files

README and files

README

InsightFace-Face Swapper-on Video

Replaces a face in a video clip with another face, using an InsightFace swapper model behind a small Streamlit page. Runs in the browser on Hugging Face or on your own computer.

Made by zerovic on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: This Space replaces a face in a video clip with a different face. A small Streamlit app in app.py drives the swap, and the model file inswapper_128.onnx sits in the same repository. You can run it in the browser or copy it to your own computer.

Who it suits: People who edit or experiment with video and want a quick way to try a face swap without building a pipeline. Developers who want a short Streamlit example around an ONNX model will also find it handy.

Industry | Who uses it | How they use it | Example
Video editing | Hobby editors | Put a stand-in face into a short clip | Trying a different face on a test clip before real editing
Education | Students of computer vision | Study how a face swap model handles moving pictures | Running one clip through the app and comparing it with the original
Software | Python developers | Read app.py and reuse the idea in their own tool | Copying the Space and changing the input clip

If you never work with video or faces in pictures, you can skip it.

Where to use it:

  • A web browser, on the Space's page at Hugging Face
  • Windows with Python
  • macOS with Python
  • Linux with Python
Use case | Who | What they get back
Swap a face in a clip | Video hobbyists | The same clip with a different face in it
Test a swapper model | Students and developers | A working demo to look at and run locally

How to set it up: You need only a little before you start.

  • Python on Windows, macOS or Linux
  • The pip tool, to install the Python packages from requirements.txt
  • Nothing at all if you use the Space online, since it runs in the browser
  1. Install the Hugging Face hub package.
  2. Download the Space's files into a local folder.
  3. Move into that folder.
  4. Install Streamlit at the pinned version, then the packages from requirements.txt.
  5. Start the app.
pip install -U huggingface_hub
hf download zerovic/InsightFace-Face_Swapper-on_video --repo-type space --local-dir InsightFace-Face_Swapper-on_video
cd InsightFace-Face_Swapper-on_video
pip install streamlit==1.39.0
pip install -r requirements.txt
streamlit run app.py

How to use it: Online, open the Space's page and use the app there. On your own computer, run this command from the project folder and open the page Streamlit shows.

streamlit run app.py

Example: You open the Space and give the app a short video clip along with the face you want to place in it. The app hands back the clip with that face swapped in.

For newcomers and experts: If you are new to this, open the Space's page in your browser and try one short clip first. Nothing needs installing for that, and you will see quickly what the swap does.

If you know the field, the swapper is an ONNX model file stored in the repository next to a single app.py, and the hosted copy runs on basic CPU hardware. A CPU host has no graphics card to speed up video work, so long clips will probably take a while.

Open the Space or run streamlit locally
Give the app a video and a face
app.py loads the inswapper_128.onnx model
The face in the video is swapped
You get the swapped video back

Good to know: The source states few limits, so check the results yourself.

  • License: MIT, as the Space's license line says
  • Cost to run: none named, and the hosted copy uses Hugging Face's basic CPU hardware
  • Data it reaches: the video and face you give it. The online copy runs on Hugging Face's servers, while a copy on your computer works on local files

On Hugging Face, 13 November 2026

  • Likes: 5
  • Built with: streamlit
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  4 KB

1 file, 4 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
InsightFace-Face Swapper-on Video This page5streamlitmit
Inpaint_MeShares streamlit11streamlitapache-2.0
Spotify Song ReccomenderShares streamlit2streamlitmit
Smart SearchShares streamlit1streamlitcc-by-nc-sa-4.0
Reddit Video DownloaderShares streamlit0streamlitmit
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Productivity

See all in Productivity

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k

IPTV

iptv-org · Kit

Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…

New144k