mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-29 09:18:21 +00:00
fixed legacy TT2 docker - install python3.6 deps directly instead of venv
This commit is contained in:
@@ -33,7 +33,6 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|||||||
# RUN apt-get update \
|
# RUN apt-get update \
|
||||||
# && apt-get install -y \
|
# && apt-get install -y \
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
#RUN apt-cache search python3.8
|
|
||||||
|
|
||||||
# NB: Here we install nvidia drivers
|
# NB: Here we install nvidia drivers
|
||||||
# NB: Avoid keyboard prompt
|
# NB: Avoid keyboard prompt
|
||||||
@@ -44,7 +43,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
# Notes on packages:
|
# Notes on packages:
|
||||||
# * software-properties-common - needed for `apt-add-repository`
|
# * software-properties-common - needed for `apt-add-repository`
|
||||||
# * pciutils - needed for `lspci | grep -i nvidia`
|
# * pciutils - needed for `lspci | grep -i nvidia`
|
||||||
RUN apt-get install -y \
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
cython3 \
|
cython3 \
|
||||||
@@ -72,7 +72,6 @@ RUN apt-get install -y \
|
|||||||
sox \
|
sox \
|
||||||
tmux \
|
tmux \
|
||||||
unzip \
|
unzip \
|
||||||
vim \
|
|
||||||
wget
|
wget
|
||||||
|
|
||||||
# Wav2Lip needs Python3.6
|
# Wav2Lip needs Python3.6
|
||||||
@@ -80,13 +79,15 @@ RUN apt-get install -y \
|
|||||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y \
|
RUN apt-get install -y \
|
||||||
|
python3-pip \
|
||||||
python3.6 \
|
python3.6 \
|
||||||
python3.6-dev \
|
python3.6-dev \
|
||||||
python3.6-pip \
|
|
||||||
python3.6-venv
|
python3.6-venv
|
||||||
|
|
||||||
RUN python3.6 --version
|
RUN python3.6 --version
|
||||||
|
|
||||||
|
RUN python3.6 -m pip install pip
|
||||||
|
|
||||||
# ==================== Tacotron, Waveglow, HifiGan, etc. ====================
|
# ==================== Tacotron, Waveglow, HifiGan, etc. ====================
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
@@ -99,9 +100,9 @@ WORKDIR models/tts
|
|||||||
|
|
||||||
# NB: Not sure if we need Python3.6 for Tacotron2, but Python3.8 gave me trouble.
|
# NB: Not sure if we need Python3.6 for Tacotron2, but Python3.8 gave me trouble.
|
||||||
# NB: Setuptools fix: https://github.com/tensorflow/tensorflow/issues/34302#issuecomment-554450289
|
# NB: Setuptools fix: https://github.com/tensorflow/tensorflow/issues/34302#issuecomment-554450289
|
||||||
RUN pip3 install --upgrade pip setuptools \
|
RUN python3.6 -m pip install --upgrade pip setuptools \
|
||||||
&& pip3 install -r requirements-tacotron-python36.txt \
|
&& python3.6 -m pip install -r requirements-tacotron-python36.txt \
|
||||||
&& pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
|
&& python3.6 -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
|
||||||
|
|
||||||
# Final image
|
# Final image
|
||||||
# FROM ubuntu:xenial
|
# FROM ubuntu:xenial
|
||||||
|
|||||||
Reference in New Issue
Block a user