AI开发平台MODELARTS-Wav2Lip基于DevServer适配PyTorch NPU推理指导(6.3.906):Step5 下载并适配代码

时间:2024-09-14 22:29:28

Step5 下载并适配代码

  1. 在容器中解压代码包。
    unzip AscendCloud-AIGC-6.3.906-*.zip
    rm -rf AscendCloud-AIGC-6.3.906-*
  2. 执行wav2lip推理插件的安装脚本。
    cd multimodal_algorithm/Wav2Lip/inference/f361e9527b917a435928a10931fee9ac7be109cd 
    source install.sh
  3. 从官网下载Wav2lip权重文件Wav2Lip+GAN权重文件,并放在容器的checkpoints目录下。上一步执行完source install.sh命令后,会自动生成checkpoints目录。
  4. 从官网下载模型s3fd-619a316812.pth,并重命名为s3fd.pth,放在容器路径face_detection/detection/sfd下。上一步执行完source install.sh命令后,会自动生成face_detection/detection/sfd目录。
support.huaweicloud.com/bestpractice-modelarts/modelarts_10_1211.html