Refactoring animation. (#1301)

Signed-off-by: Yao, Qing <qing.yao@intel.com>
Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
Yao Qing
2024-12-27 17:21:47 +08:00
committed by GitHub
parent b27b48c488
commit b9790d809b
5 changed files with 9 additions and 9 deletions

View File

@@ -37,9 +37,9 @@ docker build -t opea/tts:latest --build-arg https_proxy=$https_proxy --build-arg
### 5. Build Animation Image
```bash
docker build -t opea/wav2lip:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/wav2lip/dependency/Dockerfile .
docker build -t opea/wav2lip:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/src/integration/dependency/Dockerfile .
docker build -t opea/animation:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/wav2lip/Dockerfile .
docker build -t opea/animation:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/src/Dockerfile .
```
### 6. Build MegaService Docker Image

View File

@@ -37,9 +37,9 @@ docker build -t opea/tts:latest --build-arg https_proxy=$https_proxy --build-arg
### 5. Build Animation Image
```bash
docker build -t opea/wav2lip-gaudi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/wav2lip/dependency/Dockerfile.intel_hpu .
docker build -t opea/wav2lip-gaudi:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/src/integration/dependency/Dockerfile.intel_hpu .
docker build -t opea/animation:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/wav2lip/Dockerfile .
docker build -t opea/animation:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/animation/src/Dockerfile .
```
### 6. Build MegaService Docker Image

View File

@@ -56,18 +56,18 @@ services:
wav2lip-gaudi:
build:
context: GenAIComps
dockerfile: comps/animation/wav2lip/dependency/Dockerfile.intel_hpu
dockerfile: comps/animation/src/integration/dependency/Dockerfile.intel_hpu
extends: avatarchatbot
image: ${REGISTRY:-opea}/wav2lip-gaudi:${TAG:-latest}
wav2lip:
build:
context: GenAIComps
dockerfile: comps/animation/wav2lip/dependency/Dockerfile
dockerfile: comps/animation/src/integration/dependency/Dockerfile
extends: avatarchatbot
image: ${REGISTRY:-opea}/wav2lip:${TAG:-latest}
animation:
build:
context: GenAIComps
dockerfile: comps/animation/wav2lip/Dockerfile
dockerfile: comps/animation/src/Dockerfile
extends: avatarchatbot
image: ${REGISTRY:-opea}/animation:${TAG:-latest}

View File

@@ -64,7 +64,7 @@ function start_services() {
export WAV2LIP_PORT=7860
export INFERENCE_MODE='wav2lip+gfpgan'
export CHECKPOINT_PATH='/usr/local/lib/python3.10/dist-packages/Wav2Lip/checkpoints/wav2lip_gan.pth'
export FACE="assets/img/avatar1.jpg"
export FACE="/home/user/comps/animation/src/assets/img/avatar1.jpg"
# export AUDIO='assets/audio/eg3_ref.wav' # audio file path is optional, will use base64str in the post request as input if is 'None'
export AUDIO='None'
export FACESIZE=96

View File

@@ -64,7 +64,7 @@ function start_services() {
export WAV2LIP_PORT=7860
export INFERENCE_MODE='wav2lip+gfpgan'
export CHECKPOINT_PATH='/usr/local/lib/python3.11/site-packages/Wav2Lip/checkpoints/wav2lip_gan.pth'
export FACE="assets/img/avatar5.png"
export FACE="/home/user/comps/animation/src/assets/img/avatar5.png"
# export AUDIO='assets/audio/eg3_ref.wav' # audio file path is optional, will use base64str in the post request as input if is 'None'
export AUDIO='None'
export FACESIZE=96