kenwaytis / faster-SadTalker-API

The API server version of the SadTalker project. Runs in Docker, 10 times faster than the original!
MIT License
115 stars 22 forks source link

Interface not showing with docker compose? #7

Open salahzoubi opened 1 year ago

salahzoubi commented 1 year ago

Hi, first of all, thank you for all your great work!

I'm following the instructions on the repo ReadMe, installing all the latest releases in the relevant directories and then running the docker compose up. The docker compose seems to work fine, however, when I try to access the interface of either the sadtalker or the tts all I get is this: {"detail":"Not Found"}. The docs however seem to work fine. Here's the log I'm getting from docker compose up:

[+] Running 3/0
 ⠿ Network faster-sadtalker-api_default  Created                                                                                                                                                                                              0.0s
 ⠿ Container tts                         Created                                                                                                                                                                                              0.0s
 ⠿ Container sadtalker                   Created                                                                                                                                                                                              0.0s
Attaching to sadtalker, tts
sadtalker  | 
sadtalker  | ==========
sadtalker  | == CUDA ==
sadtalker  | ==========
sadtalker  | 
sadtalker  | CUDA Version 11.6.2
sadtalker  | 
sadtalker  | Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
sadtalker  | 
sadtalker  | This container image and its contents are governed by the NVIDIA Deep Learning Container License.
sadtalker  | By pulling and using the container, you accept the terms and conditions of this license:
sadtalker  | https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
sadtalker  | 
sadtalker  | A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
sadtalker  | 
tts        | INFO:     Will watch for changes in these directories: ['/home/tts']
tts        | INFO:     Uvicorn running on http://0.0.0.0:9566 (Press CTRL+C to quit)
tts        | INFO:     Started reloader process [1] using StatReload
sadtalker  | INFO:     Will watch for changes in these directories: ['/home/SadTalker']
sadtalker  | INFO:     Uvicorn running on http://0.0.0.0:10364 (Press CTRL+C to quit)
sadtalker  | INFO:     Started reloader process [1] using WatchFiles
tts        | 2023-09-21 08:55:38,688 - modelscope - INFO - PyTorch version 1.11.0+cu113 Found.
tts        | 2023-09-21 08:55:38,690 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
tts        | 2023-09-21 08:55:38,690 - modelscope - INFO - No valid ast index found from /root/.cache/modelscope/ast_indexer, generating ast index from prebuilt!
tts        | 2023-09-21 08:55:38,733 - modelscope - INFO - Loading done! Current index file version is 1.7.1, with md5 af97a421545bdaf89660cbd7176bfd06 and a total number of 861 components indexed
tts        | INFO:     Started server process [8]
tts        | INFO:     Waiting for application startup.
tts        | 2023-09-21 08:55:39.339 | INFO     | main:startup_event:117 - Application is starting up!
tts        | 2023-09-21 08:55:42,447 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0
Downloading: 100%|██████████| 487/487 [00:00<00:00, 92.8kB/s]
sadtalker  | INFO:     Started server process [28]
sadtalker  | INFO:     Waiting for application startup.
sadtalker  | INFO:     Application startup complete.
Downloading: 100%|██████████| 289M/289M [00:20<00:00, 15.0MB/s] 
sadtalker  | using safetensor as default
sadtalker  | INFO:     172.28.0.1:36618 - "GET / HTTP/1.1" 404 Not Found
Downloading: 100%|██████████| 289M/289M [00:18<00:00, 16.3MB/s] 
Downloading: 100%|██████████| 47.0M/47.0M [00:02<00:00, 19.1MB/s]
Downloading: 100%|██████████| 47.0M/47.0M [00:03<00:00, 13.1MB/s]
Downloading: 100%|██████████| 3.68k/3.68k [00:00<00:00, 570kB/s]
Downloading: 100%|██████████| 2.40k/2.40k [00:00<00:00, 1.58MB/s]
Downloading: 100%|██████████| 2.40k/2.40k [00:00<00:00, 1.72MB/s]
Downloading: 100%|██████████| 3.77k/3.77k [00:00<00:00, 2.78MB/s]
Downloading: 100%|██████████| 235/235 [00:00<00:00, 157kB/s]
Downloading: 100%|██████████| 10.0/10.0 [00:00<00:00, 7.07kB/s]
Downloading: 100%|██████████| 51.3k/51.3k [00:00<00:00, 287kB/s]
Downloading: 100%|██████████| 144/144 [00:00<00:00, 103kB/s]
Downloading: 100%|██████████| 22.0k/22.0k [00:00<00:00, 237kB/s]
Downloading: 100%|██████████| 2.20k/2.20k [00:00<00:00, 1.56MB/s]
Downloading: 100%|██████████| 9.29k/9.29k [00:00<00:00, 5.60MB/s]
Downloading: 100%|██████████| 6.89k/6.89k [00:00<00:00, 4.75MB/s]
Downloading: 100%|██████████| 236M/236M [00:12<00:00, 20.1MB/s] 
Downloading: 100%|██████████| 67.1k/67.1k [00:00<00:00, 485kB/s]
Downloading: 100%|██████████| 13.0/13.0 [00:00<00:00, 7.60kB/s]
Downloading: 100%|██████████| 63.6k/63.6k [00:00<00:00, 359kB/s]
Downloading: 100%|██████████| 31.0/31.0 [00:00<00:00, 20.6kB/s]
tts        | 2023-09-21 08:57:01,836 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k
tts        | 2023-09-21 08:57:01,836 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k.
tts        | 2023-09-21 08:57:01,837 - modelscope - INFO - initialize model from /root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k
tts        | 2023-09-21 08:57:01,845 - modelscope - INFO - am_config=/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/am/config.yaml voc_config=/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/voc/config.yaml
tts        | 2023-09-21 08:57:01,845 - modelscope - INFO - audio_config=/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/audio_config.yaml
tts        | 2023-09-21 08:57:01,845 - modelscope - INFO - am_ckpts=OrderedDict([(708720, '/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/am/ckpt/checkpoint_708720.pth')])
tts        | 2023-09-21 08:57:01,845 - modelscope - INFO - voc_ckpts=OrderedDict([(1280000, '/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/voc/ckpt/checkpoint_01280000.pth')])
tts        | 2023-09-21 08:57:01,845 - modelscope - INFO - se_path=/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/am/se.npy se_model_path=/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/se/ckpt/se.onnx
tts        | 2023-09-21 08:57:01,845 - modelscope - INFO - mvn_path=/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k/voices/F7/am/mvn.npy
tts        | 2023-09-21 08:57:05,318 - modelscope - WARNING - No preprocessor field found in cfg.
tts        | 2023-09-21 08:57:05,318 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
tts        | 2023-09-21 08:57:05,318 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/speech_sambert-hifigan_tts_zhiya_zh-cn_16k'}. trying to build by task and model information.
tts        | 2023-09-21 08:57:05,319 - modelscope - WARNING - No preprocessor key ('sambert-hifigan', 'text-to-speech') found in PREPROCESSOR_MAP, skip building preprocessor.
tts        | 2023-09-21 08:57:05.319 | INFO     | main:init_model:48 - loading model: {zhiya}
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | Load pinyin_en_mix_dict failed
tts        | text.cc: festival_Text_init
tts        | 2023-09-21 08:57:11.215 | INFO     | main:startup_event:124 - zhiya model load is sucessful!
tts        | INFO:     Application startup complete.
tts        | Removing weight norm...
tts        | INFO:     172.28.0.1:48680 - "GET / HTTP/1.1" 404 Not Found
tts        | INFO:     172.28.0.1:48680 - "GET /favicon.ico HTTP/1.1" 404 Not Found
tts        | INFO:     172.28.0.1:48680 - "GET /docs HTTP/1.1" 200 OK
tts        | INFO:     172.28.0.1:48680 - "GET /openapi.json HTTP/1.1" 200 OK
sadtalker  | INFO:     172.28.0.1:34716 - "GET /docs HTTP/1.1" 200 OK
sadtalker  | INFO:     172.28.0.1:34716 - "GET /openapi.json HTTP/1.1" 200 OK
sadtalker  | INFO:     172.28.0.1:34716 - "GET / HTTP/1.1" 404 Not Found

Any clue on how to fix?

qxt-expor commented 6 months ago

i'm the same with you.Do you figure it out?