Run this model with HF Jobs
Run py-feat/pyfeat-generator-liveportrait-coreml on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/py-feat/pyfeat-generator-liveportrait-coreml. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/py-feat/pyfeat-generator-liveportrait-coreml on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use py-feat/pyfeat-generator-liveportrait-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LivePortrait
How to use py-feat/pyfeat-generator-liveportrait-coreml with LivePortrait:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
LivePortrait networks converted to Core ML
Core ML (mlprogram) conversions of the 2D networks of
LivePortrait (Guo et al., 2024), used by the
LivePortrait renderer in pyfeat-generator and
the Generate tab of pyfeat-live on Apple Silicon.
These files are format conversions only. The weights are unchanged from
KlingTeam/LivePortrait (revision 82a4fa67,
liveportrait/base_models), which is released under the MIT licence. All credit for the models
belongs to the LivePortrait authors.
| Model | Input | Output | Precision |
|---|---|---|---|
appearance_fp16 |
image (1, 3, 256, 256), 0β1 |
appearance feature (1, 32, 16, 64, 64) | fp16 |
motion_fp32 |
image (1, 3, 256, 256), 0β1 |
(1, 328): pitch 66, yaw 66, roll 66, t 3, exp 63, scale 1, kp 63 | fp32 |
spade_head_fp16 |
feature (1, 256, 64, 64) |
decoder trunk (1, 512, 64, 64) | fp16 |
spade_tail_u8_fp16 |
h (1, 512, 64, 64), feature (1, 256, 64, 64) |
image (512, 512, 3), 0β255 | fp16 |
spade_fp16 |
feature (1, 256, 64, 64) |
image (1, 3, 512, 512), 0β1 | fp16 |
spade_head followed by spade_tail_u8 equals spade; the split lets the two halves run in
separate processes. The warping module is not included: it runs in PyTorch on MPS.
Notes
- Converted with coremltools 9.0, deployment target macOS 15.
- The motion extractor is kept in fp32; in fp16 its pose and expression outputs are not precise enough for stable rendering.
- Reproduce with
tools/export_liveportrait_coreml.pyin the pyfeat-generator repository. - LivePortrait's optional InsightFace-based cropping models are not part of this repository.
Citation
@article{guo2024liveportrait,
title = {LivePortrait: Efficient Portrait Animation with Stitching and Retargeting Control},
author = {Guo, Jianzhu and Zhang, Dingyun and Liu, Xiaoqiang and Zhong, Zhizhou and Zhang, Yuan and Wan, Pengfei and Zhang, Di},
journal = {arXiv preprint arXiv:2407.03168},
year = {2024}
}
- Downloads last month
- 21
Model tree for py-feat/pyfeat-generator-liveportrait-coreml
Base model
KlingTeam/LivePortrait