Improved dependency management and checkpoint handling

This commit is contained in:
2026-02-27 03:52:10 -03:00
parent e798d822f5
commit cc75e3b5fb
2 changed files with 25 additions and 9 deletions
+10 -4
View File
@@ -12,11 +12,9 @@ WORKDIR /piper
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
cmake \
espeak-ng \
git \
ninja-build \
pkg-config \
python3 \
python3-dev \
python3-venv \
@@ -27,8 +25,16 @@ RUN git clone --depth 1 https://github.com/OHF-voice/piper1-gpl.git .
RUN python3 -m venv ${VENV_PATH}
RUN pip install --upgrade pip wheel setuptools \
&& pip install --no-cache-dir cmake scikit-build \
&& pip install --no-cache-dir -e '.[train]'
&& pip install --no-cache-dir numpy cython cmake scikit-build onnx onnxruntime-gpu
RUN echo "torch==2.4.*" > /tmp/constraints.txt \
&& echo "torchvision==0.19.*" >> /tmp/constraints.txt \
&& echo "torchaudio==2.4.*" >> /tmp/constraints.txt
RUN pip install --no-cache-dir torch==2.4.* torchvision==0.19.* torchaudio==2.4.* \
--index-url https://download.pytorch.org/whl/cu121
RUN pip install --no-cache-dir -e '.[train]' -c /tmp/constraints.txt
RUN ./build_monotonic_align.sh \
&& python3 setup.py build_ext --inplace