From c990387f7e0d44e62e8c1db66a6bd247927e0bc6 Mon Sep 17 00:00:00 2001 From: Kenn Zhang Date: Tue, 13 Feb 2024 03:33:44 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=9F=E6=9C=89Dockerfile?= =?UTF-8?q?=E5=92=8C=E6=96=87=E6=A1=A3=E4=B8=AD=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E5=8F=B7=EF=BC=9BDockerfile=E4=B8=AD?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=8E=BB=E6=8E=89=20VOLUME=20=E7=9A=84?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=EF=BC=8C=E5=90=8C=E6=97=B6=E5=B0=86=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E6=9A=B4=E9=9C=B2=E7=BC=A9=E5=87=8F=E6=88=90=E4=B8=80?= =?UTF-8?q?=E8=A1=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 +---------- README.md | 2 +- docker-compose.yaml | 5 +++-- docs/cn/README.md | 2 +- docs/ja/README.md | 2 +- docs/ko/README.md | 2 +- 6 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1daaf6f..74e282c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,15 +40,6 @@ COPY . /workspace # Copy the rest of the application COPY . /workspace - -EXPOSE 9870 -EXPOSE 9871 -EXPOSE 9872 -EXPOSE 9873 -EXPOSE 9874 - -VOLUME /workspace/output -VOLUME /workspace/logs -VOLUME /workspace/SoVITS_weights +EXPOSE 9871 9872 9873 9874 9880 CMD ["python", "webui.py"] diff --git a/README.md b/README.md index c0eda03..72f3694 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ docker compose -f "docker-compose.yaml" up -d As above, modify the corresponding parameters based on your actual situation, then run the following command: ``` -docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9870:9870 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx +docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9880:9880 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx ``` ## Dataset Format diff --git a/docker-compose.yaml b/docker-compose.yaml index 874824e..aca8ab9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,10 +2,11 @@ version: '3.8' services: gpt-sovits: - image: breakstring/gpt-sovits:xxxxx # please change the image name and tag base your environment + image: breakstring/gpt-sovits:latest # please change the image name and tag base your environment. If the tag contains the word 'elite', such as "latest-elite", it indicates that the image does not include the necessary models such as GPT-SoVITS, UVR5, Damo ASR, etc. You will need to download them yourself and map them into the container. container_name: gpt-sovits-container environment: - is_half=False + - is_share=False volumes: - ./output:/workspace/output - ./logs:/workspace/logs @@ -13,7 +14,7 @@ services: - ./reference:/workspace/reference working_dir: /workspace ports: - - "9870:9870" + - "9880:9880" - "9871:9871" - "9872:9872" - "9873:9873" diff --git a/docs/cn/README.md b/docs/cn/README.md index 5c87dcf..8d3ca49 100644 --- a/docs/cn/README.md +++ b/docs/cn/README.md @@ -138,7 +138,7 @@ docker compose -f "docker-compose.yaml" up -d 同上,根据您自己的实际情况修改对应的参数,然后运行如下命令: ``` -docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9870:9870 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx +docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9880:9880 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx ``` ### 预训练模型 diff --git a/docs/ja/README.md b/docs/ja/README.md index 26074b9..aa300c8 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -138,7 +138,7 @@ docker compose -f "docker-compose.yaml" up -d 上記と同様に、実際の状況に基づいて対応するパラメータを変更し、次のコマンドを実行します: ```markdown -docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9870:9870 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx +docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9880:9880 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx ``` ### 事前訓練済みモデル diff --git a/docs/ko/README.md b/docs/ko/README.md index e348885..afcdd66 100644 --- a/docs/ko/README.md +++ b/docs/ko/README.md @@ -141,7 +141,7 @@ docker compose -f "docker-compose.yaml" up -d 위와 동일하게 실제 상황에 맞게 매개변수를 수정한 다음 다음 명령을 실행합니다: ``` -docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9870:9870 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx +docker run --rm -it --gpus=all --env=is_half=False --volume=G:\GPT-SoVITS-DockerTest\output:/workspace/output --volume=G:\GPT-SoVITS-DockerTest\logs:/workspace/logs --volume=G:\GPT-SoVITS-DockerTest\SoVITS_weights:/workspace/SoVITS_weights --workdir=/workspace -p 9880:9880 -p 9871:9871 -p 9872:9872 -p 9873:9873 -p 9874:9874 --shm-size="16G" -d breakstring/gpt-sovits:xxxxx ``` ### 사전 훈련된 모델