mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-12 03:19:51 +08:00
Fix Bugs
This commit is contained in:
parent
292e587088
commit
b51b87b2d1
5
.github/workflows/docker-publish.yaml
vendored
5
.github/workflows/docker-publish.yaml
vendored
@ -2,9 +2,6 @@ name: Build and Publish Docker Image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- Docker
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@ -28,7 +25,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
DATE=$(date +'%Y%m%d')
|
DATE=$(date +'%Y%m%d')
|
||||||
COMMIT=$(git rev-parse --short=6 HEAD)
|
COMMIT=$(git rev-parse --short=6 HEAD)
|
||||||
echo "::set-output name=tag::${DATE}-${COMMIT}"
|
echo "tag=${DATE}-${COMMIT}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and Push Lite Docker Image
|
- name: Build and Push Lite Docker Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
10
Dockerfile
10
Dockerfile
@ -28,7 +28,7 @@ WORKDIR /workspace/GPT-SoVITS
|
|||||||
|
|
||||||
COPY . /workspace/GPT-SoVITS
|
COPY . /workspace/GPT-SoVITS
|
||||||
|
|
||||||
RUN wget --tries=25 --wait=3 --read-timeout=40 -O anaconda.sh "https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh" && \
|
RUN wget -nv --show-progress --tries=25 --wait=3 --read-timeout=40 -O anaconda.sh "https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh" && \
|
||||||
bash anaconda.sh -b -p /root/anaconda3 && \
|
bash anaconda.sh -b -p /root/anaconda3 && \
|
||||||
rm anaconda.sh
|
rm anaconda.sh
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ ARG USE_FASTERWHISPER=false
|
|||||||
|
|
||||||
RUN if [ "$USE_FUNASR" = "true" ]; then \
|
RUN if [ "$USE_FUNASR" = "true" ]; then \
|
||||||
echo "Downloading funasr..." && \
|
echo "Downloading funasr..." && \
|
||||||
wget --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/funasr.zip" && \
|
wget -nv --show-progress --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/funasr.zip" && \
|
||||||
unzip funasr.zip -d tools/asr/models/ && \
|
unzip funasr.zip -d tools/asr/models/ && \
|
||||||
rm -rf funasr.zip ; \
|
rm -rf funasr.zip ; \
|
||||||
else \
|
else \
|
||||||
@ -46,7 +46,7 @@ RUN if [ "$USE_FUNASR" = "true" ]; then \
|
|||||||
|
|
||||||
RUN if [ "$USE_FASTERWHISPER" = "true" ]; then \
|
RUN if [ "$USE_FASTERWHISPER" = "true" ]; then \
|
||||||
echo "Downloading faster-whisper..." && \
|
echo "Downloading faster-whisper..." && \
|
||||||
wget --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/faster-whisper.zip" && \
|
wget -nv --show-progress --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/faster-whisper.zip" && \
|
||||||
unzip faster-whisper.zip -d tools/asr/models/ && \
|
unzip faster-whisper.zip -d tools/asr/models/ && \
|
||||||
rm -rf faster-whisper.zip ; \
|
rm -rf faster-whisper.zip ; \
|
||||||
else \
|
else \
|
||||||
@ -65,13 +65,11 @@ ENV MAKEFLAGS="-j$(nproc)"
|
|||||||
|
|
||||||
RUN source /root/anaconda3/etc/profile.d/conda.sh && \
|
RUN source /root/anaconda3/etc/profile.d/conda.sh && \
|
||||||
conda activate GPTSoVITS && \
|
conda activate GPTSoVITS && \
|
||||||
bash /workspace/install.sh --source HF --download-uvr5 && \
|
bash install.sh --source HF --download-uvr5 && \
|
||||||
pip cache purge
|
pip cache purge
|
||||||
|
|
||||||
RUN rm -rf /root/anaconda3/pkgs
|
RUN rm -rf /root/anaconda3/pkgs
|
||||||
|
|
||||||
EXPOSE 9871 9872 9873 9874 9880
|
EXPOSE 9871 9872 9873 9874 9880
|
||||||
|
|
||||||
WORKDIR /workspace/GPT-SoVITS
|
|
||||||
|
|
||||||
CMD ["/bin/bash", "-c", "source /root/anaconda3/etc/profile.d/conda.sh && conda activate GPTSoVITS && export PYTHONPATH=$(pwd) && exec bash"]
|
CMD ["/bin/bash", "-c", "source /root/anaconda3/etc/profile.d/conda.sh && conda activate GPTSoVITS && export PYTHONPATH=$(pwd) && exec bash"]
|
@ -104,7 +104,7 @@ if find "GPT_SoVITS/pretrained_models" -mindepth 1 ! -name '.gitignore' | grep -
|
|||||||
echo "Pretrained Model Exists"
|
echo "Pretrained Model Exists"
|
||||||
else
|
else
|
||||||
echo "Download Pretrained Models"
|
echo "Download Pretrained Models"
|
||||||
wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$PRETRINED_URL"
|
wget -nv --show-progress --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$PRETRINED_URL"
|
||||||
|
|
||||||
unzip pretrained_models.zip
|
unzip pretrained_models.zip
|
||||||
rm -rf pretrained_models.zip
|
rm -rf pretrained_models.zip
|
||||||
@ -114,7 +114,7 @@ fi
|
|||||||
|
|
||||||
if [ ! -d "GPT_SoVITS/text/G2PWModel" ]; then
|
if [ ! -d "GPT_SoVITS/text/G2PWModel" ]; then
|
||||||
echo "Download G2PWModel"
|
echo "Download G2PWModel"
|
||||||
wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$G2PW_URL"
|
wget -nv --show-progress --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$G2PW_URL"
|
||||||
|
|
||||||
unzip G2PWModel.zip
|
unzip G2PWModel.zip
|
||||||
rm -rf G2PWModel.zip
|
rm -rf G2PWModel.zip
|
||||||
@ -128,7 +128,7 @@ if [ "$DOWNLOAD_UVR5" = "true" ];then
|
|||||||
echo "UVR5 Model Exists"
|
echo "UVR5 Model Exists"
|
||||||
else
|
else
|
||||||
echo "Download UVR5 Model"
|
echo "Download UVR5 Model"
|
||||||
wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$UVR5_URL"
|
wget -nv --show-progress --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$UVR5_URL"
|
||||||
|
|
||||||
unzip uvr5_weights.zip
|
unzip uvr5_weights.zip
|
||||||
rm -rf uvr5_weights.zip
|
rm -rf uvr5_weights.zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user