From a0536e4bd313b7bedc0860df8abe86c7ce48881f Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 27 Nov 2023 15:42:06 -0500 Subject: [PATCH] tooling to launch local instance more easily --- tts/tacotron2_v1_early_fakeyou/.gitignore | 4 ++++ tts/tacotron2_v1_early_fakeyou/Dockerfile | 2 +- .../container_start_tts_server.sh | 10 ++++++++++ tts/tacotron2_v1_early_fakeyou/start_tts_server.sh | 6 ------ 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100755 tts/tacotron2_v1_early_fakeyou/container_start_tts_server.sh delete mode 100755 tts/tacotron2_v1_early_fakeyou/start_tts_server.sh diff --git a/tts/tacotron2_v1_early_fakeyou/.gitignore b/tts/tacotron2_v1_early_fakeyou/.gitignore index c9f1f06..d9aea78 100644 --- a/tts/tacotron2_v1_early_fakeyou/.gitignore +++ b/tts/tacotron2_v1_early_fakeyou/.gitignore @@ -26,3 +26,7 @@ target/ .git .idea/ .ipynb_checkpoints/ + +# Dev scripts +dev_launch_docker_instance.sh + diff --git a/tts/tacotron2_v1_early_fakeyou/Dockerfile b/tts/tacotron2_v1_early_fakeyou/Dockerfile index 436c9ad..5ec522a 100644 --- a/tts/tacotron2_v1_early_fakeyou/Dockerfile +++ b/tts/tacotron2_v1_early_fakeyou/Dockerfile @@ -147,7 +147,7 @@ RUN pip3 install gdown #RUN pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 # Mostly for local development: -COPY ./start_tts_server.sh / +COPY ./container_start_tts_server.sh / # TTS model code: COPY ./ ./models/tts diff --git a/tts/tacotron2_v1_early_fakeyou/container_start_tts_server.sh b/tts/tacotron2_v1_early_fakeyou/container_start_tts_server.sh new file mode 100755 index 0000000..9be2d93 --- /dev/null +++ b/tts/tacotron2_v1_early_fakeyou/container_start_tts_server.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# This is a helpful script for local development using Docker images. + +# NB(bt,2023-11-27): At some point we stopped using venv within the Docker container +# # cd models/tts +# # source python/bin/activate +# # ./vocodes_server.py + +cd /models/tts && python3.6 vocodes_server.py + diff --git a/tts/tacotron2_v1_early_fakeyou/start_tts_server.sh b/tts/tacotron2_v1_early_fakeyou/start_tts_server.sh deleted file mode 100755 index 42bca20..0000000 --- a/tts/tacotron2_v1_early_fakeyou/start_tts_server.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# This is a helpful script for local development using Docker images. - -cd models/tts -source python/bin/activate -./vocodes_server.py