Views
No views yet

1git clone https://github.com/Tencent-Hunyuan/HunyuanPortrait
2pip3 install torch torchvision torchaudio
3pip3 install -r requirements.txtpretrained_weights by default:1pip3 install "huggingface_hub[cli]"
2cd pretrained_weights
3huggingface-cli download --resume-download stabilityai/stable-video-diffusion-img2vid-xt --local-dir . --include "*.json"
4wget -c https://huggingface.co/LeonJoe13/Sonic/resolve/main/yoloface_v5m.pt
5wget -c https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt/resolve/main/vae/diffusion_pytorch_model.fp16.safetensors -P vae
6wget -c https://huggingface.co/FoivosPar/Arc2Face/resolve/da2f1e9aa3954dad093213acfc9ae75a68da6ffd/arcface.onnx
7huggingface-cli download --resume-download tencent/HunyuanPortrait --local-dir hyportrait1.
2├── arcface.onnx
3├── hyportrait
4│ ├── dino.pth
5│ ├── expression.pth
6│ ├── headpose.pth
7│ ├── image_proj.pth
8│ ├── motion_proj.pth
9│ ├── pose_guider.pth
10│ └── unet.pth
11├── scheduler
12│ └── scheduler_config.json
13├── unet
14│ └── config.json
15├── vae
16│ ├── config.json
17│ └── diffusion_pytorch_model.fp16.safetensors
18└── yoloface_v5m.ptbash demo.sh1video_path="your_video.mp4"
2image_path="your_image.png"
3
4python inference.py \
5 --config config/hunyuan-portrait.yaml \
6 --video_path $video_path \
7 --image_path $image_path
1@article{xu2025hunyuanportrait,
2 title={HunyuanPortrait: Implicit Condition Control for Enhanced Portrait Animation},
3 author={Xu, Zunnan and Yu, Zhentao and Zhou, Zixiang and Zhou, Jun and Jin, Xiaoyu and Hong, Fa-Ting and Ji, Xiaozhong and Zhu, Junwei and Cai, Chengfei and Tang, Shiyu and Lin, Qin and Li, Xiu and Lu, Qinglin},
4 journal={arXiv preprint arXiv:2503.18860},
5 year={2025}
6}