Skip to content
This repository was archived by the owner on Dec 10, 2023. It is now read-only.

Commit c8643bc

Browse files
Chelsea E. ManningChelsea E. Manning
authored andcommitted
Update for NVIDIA CUDA 11.3 support
1 parent a91b580 commit c8643bc

File tree

1 file changed

+20
-109
lines changed

1 file changed

+20
-109
lines changed

Dockerfile.nvidia-jupyter

Lines changed: 20 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# You should have received a copy of the GNU General Public License
1515
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

17-
FROM xychelsea/anaconda3:v0.2-gpu-jupyter
17+
FROM xychelsea/ffmpeg-nvidia:v0.3-jupyter
1818
LABEL description="DeepFaceLab GPU Container w/ Jupyter Notebooks"
1919

2020
# $ docker build --network=host -t xychelsea/deepfacelab:latest-gpu-jupyter -f Dockerfile.nvidia-jupyter .
@@ -38,9 +38,8 @@ RUN apt-get update --fix-missing \
3838

3939
# Install dependencies
4040
RUN apt-get -y install \
41-
wget \
4241
git \
43-
debhelper-compat flite1-dev frei0r-plugins-dev ladspa-sdk libaom-dev libaribb24-dev libass-dev libbluray-dev libbs2b-dev libbz2-dev libcaca-dev libcdio-paranoia-dev libchromaprint-dev libcodec2-dev libdc1394-22-dev libdrm-dev libffmpeg-nvenc-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev libgme-dev libgnutls28-dev libgsm1-dev libiec61883-dev libavc1394-dev libjack-jackd2-dev liblensfun-dev liblilv-dev liblzma-dev libmp3lame-dev libmysofa-dev libopenal-dev libomxil-bellagio-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenjp2-7-dev libopenmpt-dev libopus-dev libpulse-dev librubberband-dev librsvg2-dev libsctp-dev libsdl2-dev libshine-dev libsnappy-dev libsoxr-dev libspeex-dev libssh-gcrypt-dev libtesseract-dev libtheora-dev libtwolame-dev libva-dev libvdpau-dev libvidstab-dev libvo-amrwbenc-dev libvorbis-dev libvpx-dev libwavpack-dev libwebp-dev libx264-dev libx265-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-xfixes0-dev libxml2-dev libxv-dev libxvidcore-dev libxvmc-dev libzmq3-dev libzvbi-dev ocl-icd-opencl-dev pkg-config texinfo nasm zlib1g-dev cleancss doxygen node-less tree
42+
libglu1-mesa-dev
4443

4544
# Create DeepFaceLab directory
4645
RUN mkdir -p ${DEEPFACELAB_PATH} \
@@ -54,108 +53,22 @@ WORKDIR ${HOME}
5453
RUN conda update -c defaults conda
5554

5655
# Install DeepFaceLab
57-
RUN conda create -c conda-forge -n deepfacelab python=3.8.6
58-
59-
RUN conda install -c conda-forge -n deepfacelab \
60-
ca-certificates==2020.12.5 \
61-
chardet==3.0.4 \
62-
colorama==0.4.4 \
63-
ffmpeg-python==0.2.0 \
64-
idna==2.10 \
65-
numpy==1.20.1 \
66-
opencv==4.5.0 \
67-
pillow==8.1.0 \
68-
pyqt==5.12.3 \
69-
py-opencv==4.5.0 \
70-
setuptools==49.6.0 \
71-
scikit-image==0.18.1 \
72-
scipy==1.6.0 \
73-
six==1.15.0 \
74-
tensorboard==2.4.1 \
75-
tensorboard-plugin-wit==1.8.0 \
76-
tqdm==4.56.0 \
77-
werkzeug==1.0.1 \
78-
wheel==0.36.2 \
79-
&& PATH=$PATH:${ANACONDA_PATH}/envs/${ANACONDA_ENV}/bin/
80-
81-
RUN conda run -n deepfacelab pip3 install tensorflow-gpu==2.4.0
82-
83-
RUN git clone git://github.com/xychelsea/deepfacelab.git ${DEEPFACELAB_PATH} \
84-
&& mkdir -p ${DEEPFACELAB_WORKSPACE} \
85-
&& rm -rvf ${ANACONDA_PATH}/share/jupyter/lab/staging
86-
87-
RUN cd ~ \
88-
&& wget -O ~/ffmpeg_4.3.1.orig.tar.xz http://archive.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/ffmpeg_4.3.1.orig.tar.xz \
89-
&& tar -xvf ffmpeg_4.3.1.orig.tar.xz \
90-
&& cd ~/ffmpeg-4.3.1 \
91-
&& ./configure --prefix=/usr/local/ffmpeg-nvenc \
92-
--extra-cflags=-I/usr/local/cuda/include \
93-
--extra-ldflags=-L/usr/local/cuda/lib64 \
94-
--toolchain=hardened \
95-
--enable-gpl \
96-
--disable-stripping \
97-
--enable-avresample --disable-filter=resample \
98-
--enable-cuvid \
99-
--enable-gnutls \
100-
--enable-ladspa \
101-
--enable-libaom \
102-
--enable-libass \
103-
--enable-libbluray \
104-
--enable-libbs2b \
105-
--enable-libcaca \
106-
--enable-libcdio \
107-
--enable-libcodec2 \
108-
--enable-libflite \
109-
--enable-libfontconfig \
110-
--enable-libfreetype \
111-
--enable-libfribidi \
112-
--enable-libgme \
113-
--enable-libgsm \
114-
--enable-libjack \
115-
--enable-libmp3lame \
116-
--enable-libmysofa \
117-
--enable-libnpp \
118-
--enable-libopenjpeg \
119-
--enable-libopenmpt \
120-
--enable-libopus \
121-
--enable-libpulse \
122-
--enable-librsvg \
123-
--enable-librubberband \
124-
--enable-libshine \
125-
--enable-libsnappy \
126-
--enable-libsoxr \
127-
--enable-libspeex \
128-
--enable-libssh \
129-
--enable-libtheora \
130-
--enable-libtwolame \
131-
--enable-libvorbis \
132-
--enable-libvidstab \
133-
--enable-libvpx \
134-
--enable-libwavpack \
135-
--enable-libwebp \
136-
--enable-libx265 \
137-
--enable-libxml2 \
138-
--enable-libxvid \
139-
--enable-libzmq \
140-
--enable-libzvbi \
141-
--enable-lv2 \
142-
--enable-nvenc \
143-
--enable-nonfree \
144-
--enable-omx \
145-
--enable-openal \
146-
--enable-opencl \
147-
--enable-opengl \
148-
--enable-sdl2 \
149-
&& make -j 8
150-
151-
USER root
152-
153-
RUN cd /home/anaconda/ffmpeg-4.3.1 \
154-
&& make install
155-
156-
USER $ANACONDA_UID
157-
158-
RUN echo 'PATH="/usr/local/ffmpeg-nvenc/bin:$PATH"' >> $HOME/.bashrc
56+
RUN conda create -c nvidia -n deepfacelab python=3.7 cudnn=8.0.4 cudatoolkit=11.0.221
57+
58+
RUN conda run -n deepfacelab pip3 install \
59+
tqdm \
60+
numpy==1.19.3 \
61+
h5py==2.10.0 \
62+
opencv-python==4.1.0.25 \
63+
ffmpeg-python==0.1.17 \
64+
scikit-image==0.14.2 \
65+
scipy==1.4.1 \
66+
colorama \
67+
tensorflow-gpu==2.4.0 \
68+
pyqt5
69+
RUN git clone git://github.com/xychelsea/deepfacelab.git ${DEEPFACELAB_PATH} \
70+
&& mkdir -p ${DEEPFACELAB_WORKSPACE} \
71+
&& rm -rvf ${ANACONDA_PATH}/share/jupyter/lab/staging
15972

16073
# Switch back to root
16174
USER root
@@ -170,10 +83,8 @@ RUN fix-permissions ${DEEPFACELAB_WORKSPACE} \
17083
RUN conda clean -afy
17184

17285
# Clean packages and caches
173-
RUN apt-get --purge -y autoremove \
174-
git \
175-
wget \
176-
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* ${HOME}/ffmpeg* \
86+
RUN apt-get --purge -y autoremove git \
87+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* \
17788
&& rm -rvf /home/${ANACONDA_PATH}/.cache/yarn \
17889
&& fix-permissions ${HOME} \
17990
&& fix-permissions ${ANACONDA_PATH}

0 commit comments

Comments
 (0)