Add TalkingHead GGUF packages, Mona Lisa streaming demo and documentation
Browse filesFiles changed (12)
- .gitattributes+7
- LICENSEAdded+201
- NOTICEAdded+66
- README.mdAdded+128
- demos/driving-speech.wavAdded+3
- demos/mona-lisa-streaming.mp4Added+3
- demos/mona-lisa.jpgAdded
- demos/preview.jpgAdded
- talkinghead-full-f16.ggufAdded+3
- talkinghead-full-f32.ggufAdded+3
- talkinghead-realtime-f16.ggufAdded+3
- talkinghead-realtime-f32.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383940414232 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textdemos/driving-speech.wav filter=lfs diff=lfs merge=lfs -textdemos/mona-lisa-streaming.mp4 filter=lfs diff=lfs merge=lfs -textdemos/mona-lisa.jpg filter=lfs diff=lfs merge=lfs -texttalkinghead-full-f16.gguf filter=lfs diff=lfs merge=lfs -texttalkinghead-full-f32.gguf filter=lfs diff=lfs merge=lfs -texttalkinghead-realtime-f16.gguf filter=lfs diff=lfs merge=lfs -texttalkinghead-realtime-f32.gguf filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566ampixa-talkingheadCopyright 2026 Ampixa
This product is a modified derivative of Ditto (antgroup/ditto-talkinghead,https://github.com/antgroup/ditto-talkinghead), licensed under the ApacheLicense, Version 2.0 (see LICENSE).
Changes made: the audio-feature, motion and rendering models were distilledand compressed (smaller student networks, fp16 / int8 weight storage, achannel-pruned real-time renderer trained with a lip-sync loss); the face cropuses MediaPipe only; new runtime (Python API, Core ML and TensorRT backends,child-process compositing). Weights are distributed separately.
Third-party components----------------------
LivePortrait (https://github.com/KwaiVGI/LivePortrait), MIT License.Used for the appearance / motion extractors, warping network, SPADE decoder,stitching network and crop utilities (ampixa_talkinghead/nets/*,ampixa_talkinghead/ops/crop.py) and for the weights they load.
Copyright (c) 2024 Kuaishou Visual Generation and Interaction Center
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
S2G-MDDiffusion (https://github.com/thuhcsi/S2G-MDDiffusion), MIT License.Used for the motion-diffusion network code (ampixa_talkinghead/nets/lmdm/*).
Copyright (c) 2024 Xu He
The MIT permission notice above applies.
rotary-embedding-torch (https://github.com/lucidrains/rotary-embedding-torch), MIT License.Used in the motion-diffusion network (ampixa_talkinghead/nets/lmdm/rotary_embedding_torch.py).
Copyright (c) 2021 Phil Wang
The MIT permission notice above applies.
ConvNeXt-V2 (https://github.com/facebookresearch/ConvNeXt-V2), MIT License for code.The motion-extractor architecture (ampixa_talkinghead/nets/convnextv2.py) is adapted from it via LivePortrait.No ConvNeXt-V2 ImageNet weights (CC-BY-NC 4.0) are distributed; the motion-extractor weights are LivePortrait's.
Copyright (c) Meta Platforms, Inc. and affiliates.
The MIT permission notice above applies.
MediaPipe (https://github.com/google-ai-edge/mediapipe), Apache License 2.0.The face landmarker model (face_landmarker.task, shipped with the weights) andthe mediapipe Python package are used for the face crop and eye state.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128---license: apache-2.0base_model: ampixa/talkingheadpipeline_tag: image-to-videotags: - gguf - audio.cpp - talking-head---
# TalkingHead GGUF
> [!WARNING]> Experimental support is available on the audio.cpp> [`feature/talkinghead`](https://github.com/0xShug0/audio.cpp/tree/feature/talkinghead)> branch. Metal performance issues are not yet fully resolved.
Dedicated package repository: `audio-cpp/TalkingHead-GGUF`.
<video controls playsinline poster="demos/preview.jpg" src="demos/mona-lisa-streaming.mp4"></video>
**Mona Lisa, live audio input.** A real audio.cpp C++ session receives 100 msaudio packets over 90 seconds and emits video frames while input is arriving.The demo uses a fixed 4.2-second client playback buffer for synchronized audioand video. This is a demo setting, not a model option.
Native audio.cpp packages for [Ampixa TalkingHead](https://github.com/Ampixa/talkinghead).The model animates a portrait from supplied speech audio; it does not generate speech.The audio encoder and one-step motion student drive a LivePortrait-style renderer.
| File | Renderer | Size ||---|---|---|| `talkinghead-realtime-f16.gguf` | Pruned real-time | 186.3 MiB || `talkinghead-realtime-f32.gguf` | Pruned real-time | 366.4 MiB || `talkinghead-full-f16.gguf` | Full quality | 262.5 MiB || `talkinghead-full-f32.gguf` | Full quality | 518.6 MiB |
All packages embed the audio, motion, portrait frontend and renderer weights,configuration, and audio.cpp model specification. F16 packages retainnormalization parameters and conditioning data in F32. Source-motion extractionpreserves upstream CPU FP16 autocast arithmetic independently of package storage.Portrait landmarks run on CPU; the other neural components use the selected backend.
These packages require an audio.cpp build containing the experimental`talkinghead` family. They do not work with older releases that lack the family.The real-time renderer name describes the checkpoint tier; this port currentlyaccepts complete driving audio offline, or audio chunks with streamed video output.Add `--mode streaming` for chunked file processing; C++ live producers use theexisting `process_audio_chunk` interface. The initial motion window needs about3.9 seconds of audio, including context. Input, motion and emitted frames are notretained for the whole recording. Source-video data remains cached. Liveresampling uses stateful SOXR; 16 kHz input needs no external resampler. Automaticprosody gestures require offline mode; scripted gestures support live input.
```bashaudiocpp_cli --family talkinghead --task gen --backend cuda --threads 8 \ --model talkinghead-realtime-f16.gguf --audio speech.wav \ --request-option reference_image_file=portrait.jpg \ --out-dir output --log```
CUDA automatically selects the cuDNN renderer when the build enables both`GGML_CUDA_CUDNN_CONV2D` and `GGML_CUDA_CUDNN_CONV3D`. Otherwise it uses GGML;CPU and Vulkan use GGML too. Explicit`talkinghead.exec_plan={"renderer":{"impl":"ggml"}}` overrides automatic selection.A cuDNN-enabled executable requires the corresponding runtime libraries.
The CLI exports raw RGB24 frame files, not an encoded MP4, and logs their dimensions. Applications can consume the RGB payloadsand associated metadata through the C++ task API and encode them using their video stack.
Motion RNG differs from upstream NumPy, so the same seed does not imply identicalvideos. Head motion, the eight emotions, automatic prosody gestures and scriptednods/tilts/glances are available through model request options.
## Performance
Saved RTX 5090 measurements using the real-time renderer, the same 8.52-secondaudio and source portrait (`face04.jpg`), and 213 output frames:
| Implementation | Warm time | ms/frame | RTF ||---|---:|---:|---:|| audio.cpp CUDA/cuDNN | 1.737 s | 8.15 | 0.204 || Official Python / PyTorch CUDA | 1.922 s | 9.02 | 0.226 || Official Python / TensorRT | 1.748 s | 8.21 | 0.205 |
The recorded audio.cpp call is about 10% shorter than PyTorch and effectivelytied with TensorRT. audio.cpp and TensorRT figures are medians of three warmcalls; the PyTorch figure is one warm call. These are earlier measurements,not timings of the Mona Lisa demo.
**Timing boundaries differ:** Python includes MP4 encoding and audio muxing;audio.cpp includes inference and RGB frame preparation but excludes HTTPserialization/delivery and video encoding. These figures do not establish anequivalent encoded-video end-to-end speedup. Model loading and TensorRT enginecompilation are excluded from warm timings. RTF is processing time divided byinput duration; lower is better.
Saved sampled **peak process VRAM**, on the same 8.52-second fixture in separateruns (not collected during the three-call timing comparison above):
| Implementation | Peak VRAM ||---|---:|| audio.cpp CUDA/cuDNN | 1,348 MiB || Official Python / PyTorch CUDA | 2,192 MiB || Official Python / TensorRT | 1,354 MiB |
TensorRT peak was measured in a fresh process with cached engines, includingavatar initialization and four sequential 213-frame calls. Process VRAM wassampled with `nvidia-smi` (50 ms sleep between queries); every call confirmedthe TensorRT backend. This excludes first-time engine compilation.
## License and provenance
Upstream source revision: `a61c5e346dc5ac40f1149bebaefcf87ac477e2b2`.Checkpoint revision: `4b65dd2b5df7c69264302a086d09dd999f26a185` from[ampixa/talkinghead](https://huggingface.co/ampixa/talkinghead).
The upstream project distributes these checkpoints under Apache-2.0. Retain[LICENSE](LICENSE) and [NOTICE](NOTICE), including the LivePortrait, MediaPipe,Ditto and other third-party notices, when redistributing these packages.
## Demo credits
Portrait: Leonardo da Vinci’s *Mona Lisa*, [public-domain reproduction fromWikimedia Commons](https://commons.wikimedia.org/wiki/File:Mona_Lisa.jpg).The video is a synthetic animation of the painting, not an authentic recording.Driving speech: the repository’s generated English long-form validation audio;[demo input](demos/driving-speech.wav). [Source portrait](demos/mona-lisa.jpg).123version https://git-lfs.github.com/spec/v1oid sha256:cb00deaf39f0199d9792377f681e1eafd387fb0333ceda60efbf91c1e54c065csize 2880078123version https://git-lfs.github.com/spec/v1oid sha256:73a6185a91781be4d03c3d13f299e77a5a259d28fb9ba27f51c9a4f0d75f8dfasize 5795347123version https://git-lfs.github.com/spec/v1oid sha256:567b1d8c187d523a75388315035310ecb4c6691bc3e8184c93a8e276aa5e5b43size 275213248123version https://git-lfs.github.com/spec/v1oid sha256:a9573d238d45cb043e9bb35ac80fb491b5668100cd9cd6e365bcc4d1a07fd43asize 543825312123version https://git-lfs.github.com/spec/v1oid sha256:3e4820d531cbbdef210793e4f1e3102372f3299c0bb6633cccad02ff6f6a5219size 195399872123version https://git-lfs.github.com/spec/v1oid sha256:863bbf2eb1f904bb779d4ff9ca016dda6c4b373afe7c9fab89e96a44c5057d53size 384249760.gitattributes+7
LICENSEAdded+201
NOTICEAdded+66
README.mdAdded+128
demos/driving-speech.wavAdded+3
demos/mona-lisa-streaming.mp4Added+3
demos/mona-lisa.jpgAdded

Large File Pointer Details
- SHA256: 0403529ec3f8ec8ef9900fd6c49b341da6235a07a9a8a44f75e628b93980e07d
- Pointer size: 132 Bytes
- Size of remote file: 3.51 MB
demos/preview.jpgAdded

talkinghead-full-f16.ggufAdded+3
talkinghead-full-f32.ggufAdded+3
talkinghead-realtime-f16.ggufAdded+3
talkinghead-realtime-f32.ggufAdded+3