Merge branch 'lipku:main' into main

This commit is contained in:
ShelikeSnow 2024-06-23 11:46:33 +08:00 committed by GitHub
commit 6eb03ecbff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -34,7 +34,7 @@ linux cuda环境搭建可以参考这篇文章 https://zhuanlan.zhihu.com/p/6749
## 2. Quick Start ## 2. Quick Start
默认采用ernerf模型webrtc推流到srs 默认采用ernerf模型webrtc推流到srs
### 2.1 运行rtmpserver (srs) ### 2.1 运行srs
``` ```
export CANDIDATE='<服务器外网ip>' export CANDIDATE='<服务器外网ip>'
docker run --rm --env CANDIDATE=$CANDIDATE \ docker run --rm --env CANDIDATE=$CANDIDATE \
@ -128,6 +128,7 @@ python app.py --customvideo --customvideo_img data/customvideo/img --customvideo
``` ```
python app.py --transport webrtc python app.py --transport webrtc
``` ```
服务端需要开放端口 tcp:8010; udp:50000~60000
用浏览器打开http://serverip:8010/webrtcapi.html 用浏览器打开http://serverip:8010/webrtcapi.html
### 3.8 rtmp推送到srs ### 3.8 rtmp推送到srs
@ -182,7 +183,7 @@ python simple_musetalk.py --avatar_id 2 --file D:\\ok\\test.mp4
### 3.10 模型用wav2lip ### 3.10 模型用wav2lip
暂不支持rtmp推送 暂不支持rtmp推送
- 下载模型 - 下载模型
下载wav2lip运行需要的模型网盘地址 https://drive.uc.cn/s/3683da52551a4 下载wav2lip运行需要的模型网盘地址 https://drive.uc.cn/s/551be97d7cfa4
将s3fd.pth拷到本项目wav2lip/face_detection/detection/sfd/s3fd.pth, 将wav2lip.pth拷到本项目的models下 将s3fd.pth拷到本项目wav2lip/face_detection/detection/sfd/s3fd.pth, 将wav2lip.pth拷到本项目的models下
数字人模型文件 wav2lip_avatar1.tar.gz, 解压后将整个文件夹拷到本项目的data/avatars下 数字人模型文件 wav2lip_avatar1.tar.gz, 解压后将整个文件夹拷到本项目的data/avatars下
- 运行 - 运行
@ -199,7 +200,7 @@ python genavatar.py --video_path xxx.mp4
## 4. Docker Run ## 4. Docker Run
不需要前面的安装,直接运行。 不需要前面的安装,直接运行。
``` ```
docker run --gpus all -it --network=host --rm registry.cn-beijing.aliyuncs.com/codewithgpu2/lipku-metahuman-stream:TzZGB72JKt docker run --gpus all -it --network=host --rm registry.cn-beijing.aliyuncs.com/codewithgpu2/lipku-metahuman-stream:vjo1Y6NJ3N
``` ```
代码在/root/metahuman-stream先git pull拉一下最新代码然后执行命令同第2、3步 代码在/root/metahuman-stream先git pull拉一下最新代码然后执行命令同第2、3步