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.

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.py in 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
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for py-feat/pyfeat-generator-liveportrait-coreml

Quantized
(3)
this model

Paper for py-feat/pyfeat-generator-liveportrait-coreml