pragnakalp commited on
Commit
54f17e5
1 Parent(s): c331a85

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -22
Dockerfile CHANGED
@@ -10,33 +10,35 @@ RUN pip3 install pandas scipy matplotlib torch torchvision torchaudio gradio gtt
10
 
11
  RUN pip install cmake==3.24.1.1
12
 
13
- RUN git lfs install
14
- RUN git clone https://huggingface.co/camenduru/pocketsphinx-20.04-t4 pocketsphinx && cd pocketsphinx && cmake -S . -B build && cmake --build build --target install
15
- 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
16
- RUN sed -i 's/.cuda()/ /' one-shot-talking-face/test_script.py
17
- RUN sed -i 's/.cuda()/ /' one-shot-talking-face/tools/interface.py
18
- RUN sed -i 's/.load(checkpoint_path)/.load(checkpoint_path,map_location=torch.device('cpu')) /' one-shot-talking-face/tools/interface.py
19
- RUN sed -i 's/.load(audio2pose)/.load(audio2pose,map_location=torch.device('cpu')) /' one-shot-talking-face/tools/interface.py
20
- RUN cat one-shot-talking-face/tools/interface.py
21
- RUN mkdir /content/out
22
 
23
- COPY app.py /content/app.py
 
 
 
 
 
 
 
 
24
 
25
- 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
26
 
27
- RUN git clone https://github.com/chi0tzp/PyVideoFramesExtractor && cd PyVideoFramesExtractor && pip install -r requirements.txt
28
 
29
- RUN adduser --disabled-password --gecos '' admin
30
- RUN adduser admin sudo
31
- RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
32
 
33
- RUN chown -R admin:admin /content
34
- RUN chmod -R 777 /content
35
- RUN chown -R admin:admin /home
36
- RUN chmod -R 777 /home
37
- USER admin
38
 
 
 
 
 
 
39
 
40
- EXPOSE 7860
41
 
42
- CMD ["python3", "app.py"]
 
 
 
10
 
11
  RUN pip install cmake==3.24.1.1
12
 
13
+ RUN nvidia-smi
 
 
 
 
 
 
 
 
14
 
15
+ # RUN git lfs install
16
+ # RUN git clone https://huggingface.co/camenduru/pocketsphinx-20.04-t4 pocketsphinx && cd pocketsphinx && cmake -S . -B build && cmake --build build --target install
17
+ # 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
18
+ # RUN sed -i 's/.cuda()/ /' one-shot-talking-face/test_script.py
19
+ # RUN sed -i 's/.cuda()/ /' one-shot-talking-face/tools/interface.py
20
+ # RUN sed -i 's/.load(checkpoint_path)/.load(checkpoint_path,map_location=torch.device('cpu')) /' one-shot-talking-face/tools/interface.py
21
+ # RUN sed -i 's/.load(audio2pose)/.load(audio2pose,map_location=torch.device('cpu')) /' one-shot-talking-face/tools/interface.py
22
+ # RUN cat one-shot-talking-face/tools/interface.py
23
+ # RUN mkdir /content/out
24
 
25
+ # COPY app.py /content/app.py
26
 
27
+ # 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
28
 
29
+ # RUN git clone https://github.com/chi0tzp/PyVideoFramesExtractor && cd PyVideoFramesExtractor && pip install -r requirements.txt
 
 
30
 
31
+ # RUN adduser --disabled-password --gecos '' admin
32
+ # RUN adduser admin sudo
33
+ # RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
 
 
34
 
35
+ # RUN chown -R admin:admin /content
36
+ # RUN chmod -R 777 /content
37
+ # RUN chown -R admin:admin /home
38
+ # RUN chmod -R 777 /home
39
+ # USER admin
40
 
 
41
 
42
+ # EXPOSE 7860
43
+
44
+ # CMD ["python3", "app.py"]