Commit ·
d467ddf
1
Parent(s): 4a01eab
Update Dockerfile
Browse files- Dockerfile +25 -25
Dockerfile
CHANGED
|
@@ -11,31 +11,31 @@ RUN pip3 install pandas scipy matplotlib torch torchvision torchaudio gradio gtt
|
|
| 11 |
RUN pip install cmake==3.24.1.1
|
| 12 |
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
|
| 40 |
|
| 41 |
EXPOSE 7860
|
|
|
|
| 11 |
RUN pip install cmake==3.24.1.1
|
| 12 |
|
| 13 |
|
| 14 |
+
RUN git lfs install
|
| 15 |
+
RUN git clone https://huggingface.co/camenduru/pocketsphinx-20.04-t4 pocketsphinx && cd pocketsphinx && cmake -S . -B build && cmake --build build --target install
|
| 16 |
+
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 && chmod 755 OpenFace/FeatureExtraction
|
| 17 |
+
RUN sed -i 's/.cuda()/ /' one-shot-talking-face/test_script.py
|
| 18 |
+
RUN sed -i 's/.cuda()/ /' one-shot-talking-face/tools/interface.py
|
| 19 |
+
RUN sed -i 's/.load(checkpoint_path)/.load(checkpoint_path,map_location=torch.device('cpu')) /' one-shot-talking-face/tools/interface.py
|
| 20 |
+
RUN sed -i 's/.load(audio2pose)/.load(audio2pose,map_location=torch.device('cpu')) /' one-shot-talking-face/tools/interface.py
|
| 21 |
+
RUN cat one-shot-talking-face/tools/interface.py
|
| 22 |
+
RUN mkdir /content/out
|
| 23 |
+
|
| 24 |
+
COPY app.py /content/app.py
|
| 25 |
+
|
| 26 |
+
RUN git clone https://github.com/TencentARC/GFPGAN.git && cd GFPGAN && pip install basicsr && pip install facexlib && pip install -r requirements.txt && python setup.py develop && pip install realesrgan
|
| 27 |
+
|
| 28 |
+
RUN git clone https://github.com/chi0tzp/PyVideoFramesExtractor && cd PyVideoFramesExtractor && pip install -r requirements.txt
|
| 29 |
+
|
| 30 |
+
RUN adduser --disabled-password --gecos '' admin
|
| 31 |
+
RUN adduser admin sudo
|
| 32 |
+
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
| 33 |
+
|
| 34 |
+
RUN chown -R admin:admin /content
|
| 35 |
+
RUN chmod -R 777 /content
|
| 36 |
+
RUN chown -R admin:admin /home
|
| 37 |
+
RUN chmod -R 777 /home
|
| 38 |
+
USER admin
|
| 39 |
|
| 40 |
|
| 41 |
EXPOSE 7860
|