pragnakalp commited on
Commit
6488330
1 Parent(s): 2b0083b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM ubuntu:latest
3
  WORKDIR /content
4
 
5
  RUN apt-get update && apt-get install -y \
6
- python3.8 \
7
  python3-pip \
8
  gnupg \
9
  wget \
@@ -31,8 +31,8 @@ RUN apt-get install -y ffmpeg libavcodec-dev libavformat-dev libavdevice-dev lib
31
  RUN apt-add-repository -y universe
32
 
33
  RUN pip install git+https://github.com/One-sixth/fairseq.git --break-system-packages
34
- RUN pip3 install distutils "setuptools==44.0.0" --break-system-packages
35
- RUN pip3 install "numpy==1.22.0" --break-system-packages
36
  RUN pip3 install pandas scipy matplotlib torch torchvision ffmpeg-python imageio[ffmpeg] tensorboardX huggingface-hub g2p_en opencv-python fairseq imageio torchaudio gradio gtts soundfile fairseq huggingface-hub g2p_en altair imageio-ffmpeg pocketsphinx dlib ffmpeg jq --break-system-packages
37
 
38
  RUN pip install cmake==3.24.1.1 --break-system-packages
@@ -44,6 +44,7 @@ RUN git clone https://github.com/chi0tzp/PyVideoFramesExtractor && cd PyVideoFra
44
  RUN git lfs install
45
  RUN git clone https://huggingface.co/camenduru/pocketsphinx-20.04-t4 pocketsphinx && cd pocketsphinx && cmake -S . -B build && cmake --build build --target install
46
  RUN git clone https://huggingface.co/camenduru/one-shot-talking-face-20.04-t4 one-shot-talking-face && cd one-shot-talking-face && pip install -r requirements.txt --break-system-packages && chmod 755 OpenFace/FeatureExtraction
 
47
  RUN sed -i 's/.cuda()/ /' one-shot-talking-face/test_script.py
48
  RUN sed -i 's/.cuda()/ /' one-shot-talking-face/tools/interface.py
49
  RUN sed -i 's/.load(checkpoint_path)/.load(checkpoint_path,map_location=torch.device("cpu")) /' one-shot-talking-face/tools/interface.py
 
3
  WORKDIR /content
4
 
5
  RUN apt-get update && apt-get install -y \
6
+ python3 \
7
  python3-pip \
8
  gnupg \
9
  wget \
 
31
  RUN apt-add-repository -y universe
32
 
33
  RUN pip install git+https://github.com/One-sixth/fairseq.git --break-system-packages
34
+ # RUN pip3 install distutils "setuptools==44.0.0" --break-system-packages
35
+ RUN pip3 install numpy --break-system-packages
36
  RUN pip3 install pandas scipy matplotlib torch torchvision ffmpeg-python imageio[ffmpeg] tensorboardX huggingface-hub g2p_en opencv-python fairseq imageio torchaudio gradio gtts soundfile fairseq huggingface-hub g2p_en altair imageio-ffmpeg pocketsphinx dlib ffmpeg jq --break-system-packages
37
 
38
  RUN pip install cmake==3.24.1.1 --break-system-packages
 
44
  RUN git lfs install
45
  RUN git clone https://huggingface.co/camenduru/pocketsphinx-20.04-t4 pocketsphinx && cd pocketsphinx && cmake -S . -B build && cmake --build build --target install
46
  RUN git clone https://huggingface.co/camenduru/one-shot-talking-face-20.04-t4 one-shot-talking-face && cd one-shot-talking-face && pip install -r requirements.txt --break-system-packages && chmod 755 OpenFace/FeatureExtraction
47
+ COPY util.py /content/one-shot-talking-face/models/util.py
48
  RUN sed -i 's/.cuda()/ /' one-shot-talking-face/test_script.py
49
  RUN sed -i 's/.cuda()/ /' one-shot-talking-face/tools/interface.py
50
  RUN sed -i 's/.load(checkpoint_path)/.load(checkpoint_path,map_location=torch.device("cpu")) /' one-shot-talking-face/tools/interface.py