|
FROM python:3.7
|
|
|
|
WORKDIR /project
|
|
RUN apt-get update && apt-get install -y git libatlas-base-dev gfortran python3-grpcio python3-scipy python3-numpy python3-sklearn python3-llvmlite python3-cffi python3-audioread python3-numba
|
|
|
|
ENV PYTHONPATH "${PYTHONPATH}":"/usr/lib/python3/dist-packages/"
|
|
|
|
RUN git clone -q --recursive https://github.com/NVIDIA/tacotron2.git
|
|
RUN git clone https://github.com/alokprasad/fastspeech_squeezewave
|
|
RUN rm -rf tacotron2/waveglow
|
|
RUN mv fastspeech_squeezewave/SqueezeWave tacotron2/waveglow
|
|
RUN rm -rf fastspeech_squeezewave
|
|
#COPY MLPTTS .
|
|
#COPY squeezewave_dict.pt .
|
|
COPY synthesize.py .
|
|
COPY merged.dict_1.1.txt .
|
|
|
|
ARG TARGETPLATFORM
|
|
ARG BUILDPLATFORM
|
|
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
|
|
COPY arm_wheels/tensorflow-1.14.0-cp37-none-linux_aarch64.whl .
|
|
COPY arm_wheels/torch-1.4.0a0+7f73f1d-cp37-cp37m-linux_aarch64.whl .
|
|
#RUN if [ "x$TARGETPLATFORM" = "xlinux/arm64" ] ; then pip install tensorflow-1.14.0-cp37-none-linux_aarch64.whl; rm tensorflow-1.14.0-cp37-none-linux_aarch64.whl; else pip install tensorflow==1.14.0; fi
|
|
RUN if [ "x$TARGETPLATFORM" = "xlinux/arm64" ] ; then pip install torch-1.4.0a0+7f73f1d-cp37-cp37m-linux_aarch64.whl; rm torch-1.4.0a0+7f73f1d-cp37-cp37m-linux_aarch64.whl; else pip install torch; fi
|
|
#RUN pip install tensorflow==1.14.0
|
|
|
|
#COPY tensorflow-1.14.0-cp37-none-linux_armv7l.whl .
|
|
|
|
RUN python3 -m pip install --user librosa==0.6.0 unidecode
|