Download index.html from WeReCooking/AvatarForcing-WebGPU: direct link, hf CLI and curl.
- Browser
- Download file 4.27 kB
-
https://huggingface.co/spaces/WeReCooking/AvatarForcing-WebGPU/resolve/bf2fce981245c4d893e625dad09a7639c769ec74/index.html
- Command line
-
hf download hf://spaces/WeReCooking/AvatarForcing-WebGPU@bf2fce981245c4d893e625dad09a7639c769ec74/index.html
-
curl -L -o index.html https://huggingface.co/spaces/WeReCooking/AvatarForcing-WebGPU/resolve/bf2fce981245c4d893e625dad09a7639c769ec74/index.html
4.27 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Avatar Forcing WebGPU</title> | |
| <meta name="description" content="Ai2-style talking head, rendered live on your own GPU: Avatar Forcing's portrait encoder and StyleGAN-style renderer in the browser. Measures whether your GPU can do 25 fps."> | |
| <link rel="icon" href="data:,"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <main> | |
| <p id="line"><b><a href="https://github.com/TaekyungKi/AvatarForcing" target="_blank" rel="noopener">Avatar Forcing</a></b> (KAIST, CVPR 2026) turns one portrait into a live talking head. | |
| This page runs its portrait encoder and renderer <b>on your GPU</b>, driven by a synthetic motion signal, and measures whether you reach the <b>25 fps</b> a live avatar needs.</p> | |
| <section id="stage"> | |
| <canvas id="view" width="512" height="512" aria-label="Rendered avatar"></canvas> | |
| <div id="side"> | |
| <div id="avatars" role="group" aria-label="Portraits"></div> | |
| <label class="up">or your own face-centred portrait <input id="file" type="file" accept="image/*"></label> | |
| <div id="row"><button id="start" type="button" disabled>Start</button><button id="pause" type="button" disabled>Pause</button><button id="bench" type="button" disabled>Benchmark</button></div> | |
| <div id="row2"><button id="bflow" type="button" disabled title="Downloads the speech-to-motion transformer (about 270 MB) and times it with your renderer speed">Full-block test (+270 MB)</button></div> | |
| <label>Motion strength <input id="amp" type="range" min="0" max="1.2" step="0.05" value="0.5"></label> | |
| <label>Motion speed <input id="spd" type="range" min="0.2" max="3" step="0.1" value="1"></label> | |
| <p id="fps" aria-live="off">– fps</p> | |
| <p id="ms"></p> | |
| <p id="verdict"></p> | |
| </div> | |
| </section> | |
| <p id="status" role="status" aria-live="polite">Loading…</p> | |
| <div id="bar"><i></i></div> | |
| <p id="gpu"></p> | |
| <pre id="benchout" hidden></pre> | |
| <details id="more"> | |
| <summary>What this is, what is missing, and credits</summary> | |
| <p><b>What runs.</b> Two ONNX models from <a href="https://huggingface.co/WeReCooking/AvatarForcing-ONNX-WebGPU" target="_blank" rel="noopener">WeReCooking/AvatarForcing-ONNX-WebGPU</a>, converted from the authors' weights and checked against the original PyTorch code | |
| (renderer output matches to 1e-5 in fp32; fp16 differs by about 66 dB PSNR, below what the eye or an 8-bit screen shows). With fp16 the renderer keeps its image-warp step in fp32, which matters: a fully fp16 version breaks the picture. | |
| The portrait is encoded once; every frame is then one renderer pass fed with a fresh 20-number motion vector.</p> | |
| <p><b>Not here yet.</b> The part that turns <i>speech</i> into motion (a small transformer), speech recognition, the language model and the voice. This page only shows the renderer and your GPU's speed, with made-up motion. A live avatar needs the renderer to finish a 10-frame block well inside 400 ms, with the transformer sharing the rest.</p> | |
| <p><b>Needs</b> a recent Chrome or Edge with WebGPU, ideally a dedicated GPU; about 100 MB downloads once (fp16) and runs best with the page in its own tab. Frames are read back to the CPU to paint them, which costs time; a direct GPU-to-canvas path is a planned speed-up.</p> | |
| <p><b>Credits and licence.</b> Model: Avatar Forcing, Taekyung Ki et al., KAIST, <a href="https://arxiv.org/abs/2601.00664" target="_blank" rel="noopener">arXiv 2601.00664</a>, weights CC BY-NC 4.0 (non-commercial, attribution), so this demo is non-commercial. Runtime: <a href="https://github.com/microsoft/onnxruntime" target="_blank" rel="noopener">onnxruntime-web</a> (MIT). | |
| Portraits: Rumi from the AvatarForcing repo (generated with Gemini); Vicky, Ken and Amber are AI-generated and not real people, from <a href="https://github.com/johnrobinsn/AvatarVoice" target="_blank" rel="noopener">johnrobinsn/AvatarVoice</a>, whose voice-chat pipeline this project is exploring in the browser. | |
| Everything runs on your device; the portrait you upload never leaves it.</p> | |
| </details> | |
| </main> | |
| <script type="module" src="app.js"></script> | |
| </body> | |
| </html> | |