CoolFace
Apppublic

alpha-ai/face-coordinates-extraction

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

Dub Module Gradio App (Step 1 + Step 3)

This folder creates a new Gradio app based on the workflow described in `how_to.txt`.

Implemented workflow:

  • —Step 1 (in app): Upload main video, extract cropped face video, save face_coords_avg.pkl, and download both outputs.
  • —Step 2 (manual): Not part of app.
  • —Step 3 (in app): Upload original video + synced face video + face_coords_avg.pkl to generate final output video.

Notes:

  • —Audio upload is intentionally removed. The app attempts to use audio from the synced face video.
  • —Generated runtime files are stored under work/.

Files

  • —app.py: Gradio UI for Step 1 and Step 3.
  • —pipeline.py: Face extraction, coordinate generation, merging, and audio muxing.
  • —requirements.txt: Package versions known to work.

Run

bash
pip install -r requirements.txt
python app.py