voice-changer/trainer/Dockerfile

79 lines
2.4 KiB
Docker
Raw Normal View History

2022-10-30 17:25:36 +03:00
FROM dannadori/voice-changer-internal:20221030_232317 as front
2022-08-22 10:08:49 +03:00
FROM debian:bullseye-slim as base
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y python3-pip git
RUN apt-get install -y espeak
RUN apt-get install -y cmake
2022-10-29 18:58:21 +03:00
#RUN git clone --depth 1 https://github.com/isletennos/MMVC_Trainer.git -b v1.3.1.3
2022-08-22 10:08:49 +03:00
RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
RUN pip install Cython==0.29.32
RUN pip install numpy==1.22.4
RUN pip install scipy==1.9.0
RUN pip install librosa==0.9.2
RUN pip install phonemizer==3.2.1
RUN pip install Unidecode==1.3.4
RUN pip install resampy==0.4.0
RUN pip install tqdm==4.64.0
RUN pip install retry==0.9.2
RUN pip install psutil==5.9.1
RUN pip install python-socketio==5.7.1
RUN pip install matplotlib==3.5.3
2022-10-29 18:58:21 +03:00
RUN pip install fastapi==0.85.0
RUN pip install python-multipart==0.0.5
RUN pip install uvicorn==0.18.3
RUN pip install websockets==10.4
2022-09-23 11:40:51 +03:00
RUN pip install pyOpenSSL==22.0.0
2022-10-29 18:58:21 +03:00
RUN pip install pyopenjtalk==0.2.0
RUN pip install tensorboard==2.10.0
# WORKDIR /MMVC_Trainer/monotonic_align
# RUN cythonize -3 -i core.pyx \
# && mv core.cpython-39-x86_64-linux-gnu.so monotonic_align/
2022-08-22 10:08:49 +03:00
FROM debian:bullseye-slim
RUN apt-get update \
2022-08-23 00:37:18 +03:00
&& apt-get install -y python3-pip espeak gosu libsndfile1-dev\
2022-08-22 10:08:49 +03:00
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
2022-08-23 00:37:18 +03:00
### Copy local resource
2022-08-22 10:08:49 +03:00
COPY fine_model/G_180000.pth /MMVC_Trainer/fine_model/G_180000.pth
COPY fine_model/D_180000.pth /MMVC_Trainer/fine_model/D_180000.pth
2022-08-23 00:37:18 +03:00
### Copy from base
COPY --from=base --chmod=777 /usr/local/lib/python3.9/dist-packages /usr/local/lib/python3.9/dist-packages
2022-10-28 13:25:44 +03:00
### Copy from frontend
##### MMVC Trainer
COPY --from=front --chmod=777 /MMVC_Trainer /MMVC_Trainer
2022-08-23 03:45:05 +03:00
RUN chmod 0777 /MMVC_Trainer
2022-08-22 21:57:54 +03:00
2022-08-22 10:08:49 +03:00
WORKDIR /MMVC_Trainer
ADD /setup.sh /MMVC_Trainer/
2022-08-22 21:57:54 +03:00
ADD /exec.sh /MMVC_Trainer/
2022-10-28 13:25:44 +03:00
##### Voice changer Internal
2022-08-23 00:37:18 +03:00
COPY --from=front --chmod=777 /voice-changer-internal/frontend/dist /voice-changer-internal/frontend/dist
COPY --from=front --chmod=777 /voice-changer-internal/voice-change-service /voice-changer-internal/voice-change-service
RUN chmod 0777 /voice-changer-internal/voice-change-service
2022-10-02 18:16:46 +03:00
2022-10-29 18:58:21 +03:00
# ##### Soft VC
# COPY --from=front /hubert /hubert
# COPY --from=front /acoustic-model /acoustic-model
# COPY --from=front /hifigan /hifigan
# COPY --from=front /models /models
2022-10-02 18:16:46 +03:00
2022-08-22 21:57:54 +03:00
ENTRYPOINT ["/bin/bash", "setup.sh"]
CMD [ "-h"]