show code js

2024年7月26日 星期五

LivePortrait


  • ffmpeg (https://www.ffmpeg.org/)
    download > win > Windows builds from gyan.dev > release builds > ffmpeg-release-full.7z
    move bin/*.exe to windows/system32/
  • conda create -n liveportrait python=3.9 and activate it
  • d1: git clone https://github.com/KwaiVGI/LivePortrait
  • d2: git clone from hugiingface https://huggingface.co/KwaiVGI/LivePortrait
    move both directory insightface and liveportrait to d1 ./pretrained_weights/ 
  • run for cmd
    first: python  inference.py to create sample in d1 ./animations
    custom: python  inference.py -s d1 .\LivePortrait\assets\examples\source\?.jpg d1 .\LivePortrait\assets\examples\driving\?.mp4 and see outpurt in d1 ./animations
  • run for webgui
    python app.py and open 127.0.0.1:8890
    public: modify d1 .\LivePortrait\src\config\argument_config.py server_ip, server_port, and share for true

沒有留言:

張貼留言