Skip to content

Commit

Permalink
Tts 0.20.2 (#5)
Browse files Browse the repository at this point in the history
* TTS 0.20.2 with XTTS V2

* pre-install japanese packages

* install sox backend and support libraries

* Update Dockerfile typofix

* download unidic

* noninteractive install

* install unidic module

* fix req
  • Loading branch information
gorkemgoknar authored Nov 9, 2023
1 parent de53a25 commit 9994569
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 157 deletions.
12 changes: 10 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
apt-get clean && apt-get -y autoremove

WORKDIR /app
COPY requirements.frozen.txt .
RUN python -m pip install --no-deps -r requirements.frozen.txt \
COPY requirements.txt .
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \
&& python -m pip cache purge

RUN python -m unidic download

COPY main.py .

ENV NUM_THREADS=2
Expand Down
10 changes: 9 additions & 1 deletion server/Dockerfile.cuda118
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
apt-get clean && apt-get -y autoremove

WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \
&& python -m pip cache purge

RUN python -m unidic download

COPY main.py .

#Mark this 1 if you have older card
ENV NVIDIA_DISABLE_REQUIRE=0
ENV NVIDIA_DISABLE_REQUIRE=1

ENV NUM_THREADS=2
EXPOSE 80
Expand Down
8 changes: 8 additions & 0 deletions server/Dockerfile.cuda121
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
apt-get clean && apt-get -y autoremove

WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \
&& python -m pip cache purge

RUN python -m unidic download

COPY main.py .

#Mark this 1 if you have older card
Expand Down
2 changes: 1 addition & 1 deletion server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
torch.set_num_threads(int(os.environ.get("NUM_THREADS", "2")))
device = torch.device("cuda")

model_name = "tts_models/multilingual/multi-dataset/xtts_v1.1"
model_name = "tts_models/multilingual/multi-dataset/xtts_v2"
print("Downloading XTTS Model:",model_name,flush=True)
ModelManager().download_model(model_name)
model_path = os.path.join(get_user_data_dir("tts"), model_name.replace("/", "--"))
Expand Down
151 changes: 0 additions & 151 deletions server/requirements.frozen.txt

This file was deleted.

8 changes: 6 additions & 2 deletions server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
TTS==0.19.1
TTS==0.20.2
uvicorn[standard]==0.23.2
fastapi==0.95.2
deepspeed==0.10.3
pydantic==1.10.13
python-multipart==0.0.6
typing-extensions>=4.8.0
numpy==1.24.3
numpy==1.24.3
cutlet
mecab-python3==1.0.6
unidic-lite==1.0.8
unidic==1.1.0

0 comments on commit 9994569

Please sign in to comment.